Skip to content

Commit

Permalink
ci(build): Add test job
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 8, 2024
1 parent ffb8ed3 commit aaf57fb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v4

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: make test

build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -60,7 +73,7 @@ jobs:
release:
name: Release
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, build]
needs: [lint, test, build]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit aaf57fb

Please sign in to comment.