Skip to content

Commit

Permalink
chore: move test to different step
Browse files Browse the repository at this point in the history
  • Loading branch information
tomanagle committed Mar 30, 2024
1 parent ec49a69 commit 77ec828
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: main
on: ["push", "pull_request"]

jobs:

lint:
name: "Lint"
strategy:
Expand All @@ -17,18 +16,32 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- uses: WillAbides/setup-go-faster@v1.14.0
with:
go-version: ${{ matrix.go }}

- run: "make vet"

- run: "make test"

- uses: dominikh/staticcheck-action@v1.3.1
with:
version: "latest"
install-go: false
cache-key: ${{ matrix.go }}
working-directory: ${{ matrix.dir }}

test:
name: "Test"
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
go: ["1.22.x"]
dir: ["./"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1.14.0
with:
go-version: ${{ matrix.go }}
- run: "make test"

0 comments on commit 77ec828

Please sign in to comment.