Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
roeldev committed May 12, 2024
1 parent 45f17b7 commit bd21112
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: Lint
on:
push:
branches: [main]
branches: [ main ]
paths:
- '**.go'
pull_request:
branches: [main]
branches: [ main ]
paths:
- '**.go'

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable

- name: Run linter
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: latest

verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
name: Test
on:
push:
branches: [main]
branches: [ main ]
paths-ignore:
- '**.md'
- '.run/**'
- '.editorconfig'
- '*ignore'
- 'Taskfile.*'
pull_request:
branches: [main]
branches: [ main ]
paths-ignore:
- '**.md'
- '.run/**'
- '.editorconfig'
- '*ignore'
- 'Taskfile.*'

jobs:
test:
strategy:
matrix:
go-version: ['stable', 'oldstable', 1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
go-version: [ 'stable', 'oldstable', 1.20.x ]
platform: [ ubuntu-latest, macos-latest, windows-latest ]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down

0 comments on commit bd21112

Please sign in to comment.