diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3938344..d30f881 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yml similarity index 64% rename from .github/workflows/go.yaml rename to .github/workflows/go.yml index 6910661..0ba25ec 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yml @@ -4,9 +4,21 @@ on: push: branches: - main + paths: + - "**.go" + - "go.mod" + - "go.sum" pull_request: branches: - main + paths: + - "**.go" + - "go.mod" + - "go.sum" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: test: @@ -14,11 +26,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "1.20" - check-latest: true - cache: true + go-version: "stable" - run: go test -race -failfast ./... build: name: Build @@ -28,11 +38,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "1.20" - check-latest: true - cache: true + go-version: "stable" - run: go build ./cmd/populatedb golangci-lint: name: golangci-lint @@ -41,11 +49,9 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "1.20" - check-latest: true - cache: true + go-version: "stable" - uses: golangci/golangci-lint-action@v3 with: version: latest diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yml similarity index 71% rename from .github/workflows/goreleaser.yaml rename to .github/workflows/goreleaser.yml index 9ce35de..940106b 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yml @@ -15,12 +15,10 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "1.20" - check-latest: true - cache: true - - uses: goreleaser/goreleaser-action@v2 + go-version: "stable" + - uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser version: latest