Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Oct 13, 2024
1 parent 1870514 commit 05c7e23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 11 additions & 5 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
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
cache: false
go-version: '1.20'
- uses: actions/checkout@v3
- 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
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: test
on:
push:
branches:
- master
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
cache: false
go-version: '1.20'
- uses: actions/checkout@v3
- uses: n8maninger/action-golang-test@v1
- uses: actions/checkout@v4
- uses: n8maninger/action-golang-test@v2
with:
args: "-race;-timeout=30m"

0 comments on commit 05c7e23

Please sign in to comment.