Skip to content

Commit

Permalink
CI: Update ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed May 7, 2024
1 parent 8551be2 commit 2db5e4e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ jobs:
test:
strategy:
matrix:
go: [ "1.21", "1.20", "1.19" ]
os: [ ubuntu-22.04, ubuntu-20.04 ]
go: [ "1.22", "1.21" ]
os: [ ubuntu-24.04, ubuntu-22.04 ]
name: Tests Go ${{ matrix.go }} on ${{ matrix.os }} # This name is used in main branch protection rules
runs-on: ${{ matrix.os }}

Expand All @@ -31,11 +31,11 @@ jobs:
run: |
sudo apt-get install -y make gcc
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v5
- name: Run tests
run: |
# separate test to avoid RESET MASTER conflict
Expand All @@ -46,7 +46,7 @@ jobs:
name: golangci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
Expand All @@ -65,10 +65,10 @@ jobs:
run: |
sudo apt-get install -y make gcc
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: Build on ${{ matrix.os }}/${{ matrix.arch }}
run: GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build ./...

0 comments on commit 2db5e4e

Please sign in to comment.