Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
update actions to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
wawlian committed Apr 18, 2023
1 parent 844eb35 commit 2178334
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,29 @@ on:
env:
# Common versions
GO_VERSION: '1.17'
GOLANGCI_VERSION: 'v1.48.0'
GOLANGCI_VERSION: 'v1.29'

jobs:
check-license:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run Check License
run: hack/make-rules/check_license.sh

golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/checkout@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Checkout
uses: actions/setup-go@v3
with:
submodules: true
- name: Setup Go
uses: actions/checkout@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Lint golang code
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -54,17 +55,17 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: Fetch History
run: git fetch --prune --unshallow
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go Dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -74,7 +75,7 @@ jobs:
- name: Run test
run: make test
- name: Upload test coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: cover.out
Expand Down

0 comments on commit 2178334

Please sign in to comment.