Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Prashanth Pai <[email protected]>
  • Loading branch information
prashanthpai committed Dec 23, 2024
1 parent 5904a64 commit a8419ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
unittest:
strategy:
matrix:
go-version: [1.17]
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Run unit tests
run: go test -v -race -cover

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
Expand All @@ -38,15 +38,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: '1.17'
go-version: 'stable'
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Run unit tests with coverage
run: go test -v -race -coverprofile=coverage.txt
- name: Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
file: coverage.txt
flags: unittests
Expand Down

0 comments on commit a8419ec

Please sign in to comment.