Skip to content

Commit

Permalink
Run lints out of band with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Apr 12, 2024
1 parent 125a549 commit 386f0a4
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ jobs:
run: make build
- name: Build PF
run: cd pf && make build
- name: Test
run: make test
- name: Test PF
run: cd pf && make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
- name: Check out source code
uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
cache-dependency-path: |
**/go.sum
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand All @@ -45,11 +63,3 @@ jobs:
version: v1.57
- name: Lint
run: make lint
- name: Test
run: make test
- name: Test PF
run: cd pf && make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 386f0a4

Please sign in to comment.