mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +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
|
path: bin
|
||||||
key: ${{ runner.os }}-gobin-${{ hashFiles('Makefile') }}
|
key: ${{ runner.os }}-gobin-${{ hashFiles('Makefile') }}
|
||||||
|
|
||||||
# Test and build
|
# Build and test
|
||||||
|
- name: Build
|
||||||
|
run: make
|
||||||
- name: Race tests
|
- name: Race tests
|
||||||
run: make test-race || make test-race
|
run: make test-race || make test-race
|
||||||
- name: Coverage tests
|
- name: Coverage tests
|
||||||
run: make test-coverage || make test-coverage
|
run: make test-coverage || make test-coverage
|
||||||
- name: Build
|
|
||||||
run: make
|
|
||||||
- name: Upload binary
|
- name: Upload binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ run tests:
|
|||||||
- export GOMODCACHE=$PWD/.go-cache
|
- export GOMODCACHE=$PWD/.go-cache
|
||||||
- npm config --user set cache $PWD/.npm-cache
|
- npm config --user set cache $PWD/.npm-cache
|
||||||
- time go mod download
|
- time go mod download
|
||||||
|
- time make
|
||||||
- time make test
|
- time make test
|
||||||
- time make test-race || make test-race
|
- time make test-race || make test-race
|
||||||
- time make test-coverage || make test-coverage
|
- time make test-coverage || make test-coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user