Skip to content

Commit

Permalink
Update Github workflows to fix deprecation warnings (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko authored Apr 9, 2024
1 parent d70ab7c commit bb10f7a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ jobs:

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go Toolchain
uses: actions/setup-go@v5
with:
go-version: '1.20.x'
cache: false

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.51
version: 'v1.51'
build-and-test:
name: Test and Build
strategy:
Expand All @@ -29,15 +35,16 @@ jobs:

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go Toolchain
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false

- name: Cache Go artifacts
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
Expand Down

0 comments on commit bb10f7a

Please sign in to comment.