Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Oct 18, 2024
1 parent 3523ae7 commit 9a01dcf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@ name: golangci-lint
on:
push:
branches:
- master
- master
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- uses: actions/checkout@v3
cache: false
go-version: '1.22'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
version: 'latest'
args: '--timeout=60m'
only-new-issues: true
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: test
on:
push:
branches:
- master
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- uses: actions/checkout@v3
- uses: n8maninger/action-golang-test@v1
cache: false
go-version: '1.22'
- uses: actions/checkout@v4
- uses: n8maninger/action-golang-test@v2
with:
args: "-race;-timeout=30m"

0 comments on commit 9a01dcf

Please sign in to comment.