From 801110dc8e34d37c2ba7aeee38870fa41a57b36b Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Mon, 25 Mar 2024 08:20:18 +0100 Subject: [PATCH] chore: update workflows --- .github/dependabot.yml | 17 ++++++----------- .github/workflows/{test.yml => pr.yml} | 11 ++++++----- .github/workflows/{release.yml => tag.yml} | 15 +++++++-------- .golangci.yml | 1 + .goreleaser.yml | 17 +++++++++++++++++ 5 files changed, 37 insertions(+), 24 deletions(-) rename .github/workflows/{test.yml => pr.yml} (78%) rename .github/workflows/{release.yml => tag.yml} (65%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1ba1f3b..c9d1dc6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,15 +1,10 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: github-actions + directory: '/' schedule: - interval: "weekly" - - package-ecosystem: "gomod" - directory: "/" + interval: weekly + - package-ecosystem: gomod + directory: '/' schedule: - interval: "weekly" + interval: weekly diff --git a/.github/workflows/test.yml b/.github/workflows/pr.yml similarity index 78% rename from .github/workflows/test.yml rename to .github/workflows/pr.yml index b1c0152..1f91bba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/pr.yml @@ -1,9 +1,10 @@ -name: Test Branch +name: PR check on: push: branches: [ main ] pull_request: + merge_group: workflow_dispatch: concurrency: @@ -18,18 +19,18 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: 'stable' + go-version-file: 'go.mod' - uses: gotesttools/gotestfmt-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - - uses: golangci/golangci-lint-action@v3 + - uses: golangci/golangci-lint-action@v4 with: version: latest - args: --timeout=5m - - run: make test + - name: Run tests + run: make test - uses: coverallsapp/github-action@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/tag.yml similarity index 65% rename from .github/workflows/release.yml rename to .github/workflows/tag.yml index b0990b7..a6595d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/tag.yml @@ -14,16 +14,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - name: Unshallow + run: git fetch --prune --unshallow + + - uses: actions/setup-go@v5 with: - fetch-depth: 0 + go-version-file: go.mod - - run: git fetch --force --tags - - - uses: actions/setup-go@v4 - with: - go-version: 'stable' - - - uses: goreleaser/goreleaser-action@v4 + - uses: goreleaser/goreleaser-action@v5 with: version: latest args: release --clean diff --git a/.golangci.yml b/.golangci.yml index f3f5ee7..a2052d7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,5 @@ run: + timeout: 5m skip-dirs: - tmp diff --git a/.goreleaser.yml b/.goreleaser.yml index fbb8188..6282460 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,22 @@ +project_name: keel + +release: + github: + owner: foomo + name: keel + prerelease: auto + builds: - skip: true +archives: + - format: tar.gz + format_overrides: + - goos: windows + format: zip + files: + - LICENSE + - README.md + changelog: use: github-native