Skip to content

Commit

Permalink
upgrade workflow actions
Browse files Browse the repository at this point in the history
we no longer have submodules and we should parse the Go version from the mod file
  • Loading branch information
crhntr committed Mar 7, 2024
1 parent ead17a4 commit 7ffaddf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-debugging-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ secrets.RELEEN_GITHUB_TOKEN }}

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: go.mod
check-latest: true

- name: Build
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ secrets.RELEEN_GITHUB_TOKEN }}

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.21"
check-latest: true
go-version-file: go.mod

- name: Build
run: go build ./...
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
name: test
on:
push:
branches:
- main
branches: ["main"]
pull_request:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ secrets.RELEEN_GITHUB_TOKEN }}

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.21"
check-latest: true
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down

0 comments on commit 7ffaddf

Please sign in to comment.