build: build then test

This way, we don't hide all the build steps into an implicit test step.
This commit is contained in:
Vincent Bernat
2022-07-14 16:05:07 +02:00
parent 2eee9bd6cd
commit ce1916d0ce
2 changed files with 4 additions and 3 deletions

View File

@@ -60,13 +60,13 @@ jobs:
path: bin
key: ${{ runner.os }}-gobin-${{ hashFiles('Makefile') }}
# Test and build
# Build and test
- name: Build
run: make
- name: Race tests
run: make test-race || make test-race
- name: Coverage tests
run: make test-coverage || make test-coverage
- name: Build
run: make
- name: Upload binary
uses: actions/upload-artifact@v3
with:

View File

@@ -40,6 +40,7 @@ run tests:
- export GOMODCACHE=$PWD/.go-cache
- npm config --user set cache $PWD/.npm-cache
- time go mod download
- time make
- time make test
- time make test-race || make test-race
- time make test-coverage || make test-coverage