Skip to content

Commit

Permalink
Patching our github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AnomalRoil committed May 17, 2024
1 parent 8a8be08 commit ad461be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 35 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-[email protected]
- uses: actions/setup-gv5
with:
go-version: '1.19.5'
go-version: '1.22'
- name: Checkout
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.3.1
uses: golangci/golangci-lint-action@v6
with:
version: v1.50
version: v1.58
args: --timeout 5m
39 changes: 9 additions & 30 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5
with:
go-version: '1.19.5'
- uses: actions/[email protected]
id: cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: '1.22'
- name: Build
env:
DRAND_TEST_LOGS: "${{ runner.debug == '1' && 'DEBUG' || 'INFO' }}"
Expand All @@ -41,17 +34,10 @@ jobs:
CI: "true"
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.19.5'
- uses: actions/[email protected]
id: cache
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: '1.22'
- run: go get -v -t -d ./...
- name: Unit tests
env:
Expand All @@ -68,17 +54,10 @@ jobs:
CI: "true"
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.19.5'
- uses: actions/[email protected]
id: cache
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: '1.22'
- run: make coverage
env:
DRAND_TEST_LOGS: "${{ runner.debug == '1' && 'DEBUG' || 'INFO' }}"
Expand Down

0 comments on commit ad461be

Please sign in to comment.