Skip to content

Commit

Permalink
ci: add automated test step
Browse files Browse the repository at this point in the history
  • Loading branch information
shikaan committed Dec 25, 2022
1 parent 7ba33f5 commit a445237
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ on:
- '**.md'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- run: go test ./...

release:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -18,9 +26,6 @@ jobs:
versionSpec: '5.x'
- uses: gittools/actions/gitversion/[email protected]
id: version
- run: |
export VERSION="${{ steps.version.outputs.semVer }}"
go generate
- run: mkdir -p .build
- uses: crazy-max/ghaction-xgo@v1
with:
Expand Down

0 comments on commit a445237

Please sign in to comment.