mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: build then test
This way, we don't hide all the build steps into an implicit test step.
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user