mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
build: run a third job for misc tests
This commit is contained in:
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -37,8 +37,9 @@ jobs:
|
||||
tests:
|
||||
- regular
|
||||
- coverage
|
||||
- misc
|
||||
include:
|
||||
- tests: regular
|
||||
- tests: misc
|
||||
binary: ${{ github.ref_type == 'tag' }}
|
||||
env:
|
||||
CI_AKVORADO_FUNCTIONAL_TESTS: "true"
|
||||
@@ -49,7 +50,9 @@ jobs:
|
||||
fetch-depth: ${{ matrix.binary && 0 || 1 }}
|
||||
persist-credentials: false
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
if: matrix.tests != 'misc'
|
||||
- name: Docker Compose up
|
||||
if: matrix.tests != 'misc'
|
||||
run: docker compose -f docker/docker-compose-dev.yml up --wait --wait-timeout 60 --quiet-pull
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup
|
||||
@@ -63,12 +66,9 @@ jobs:
|
||||
- name: JS tests
|
||||
if: matrix.tests == 'regular'
|
||||
run: make test-js
|
||||
- name: Vector tests
|
||||
if: matrix.tests == 'regular'
|
||||
run: docker compose -f docker/docker-compose-dev.yml run --quiet --rm vector test
|
||||
|
||||
# Coverage tests
|
||||
- name: Run coverage tests
|
||||
- name: Coverage tests
|
||||
if: matrix.tests == 'coverage'
|
||||
run: make test-coverage
|
||||
- name: Upload coverage results
|
||||
@@ -81,6 +81,15 @@ jobs:
|
||||
test/go/profile.out
|
||||
test/js/cobertura-coverage.xml
|
||||
|
||||
# Misc tests
|
||||
- name: Vector tests
|
||||
if: matrix.tests == 'misc'
|
||||
run: docker compose -f docker/docker-compose-dev.yml run --quiet --rm vector test
|
||||
- name: Static checks
|
||||
if: matrix.tests == 'misc'
|
||||
run: |
|
||||
make test-go-checks
|
||||
|
||||
# Binary build
|
||||
- name: Build
|
||||
if: matrix.binary
|
||||
|
||||
2
Makefile
2
Makefile
@@ -173,7 +173,7 @@ test-go-units: ; $(info $(M) running Go tests$(GOTEST_MORE)…)
|
||||
test-race: CGO_ENABLED=1
|
||||
test-race: GOTEST_ARGS=-race
|
||||
test-race: GOTEST_MORE=, with race detector
|
||||
test-race: test-go ## Run Go tests with race detector
|
||||
test-race: test-go-units ## Run Go tests with race detector
|
||||
test-short: GOTEST_ARGS=-short
|
||||
test-short: GOTEST_MORE=, only short tests
|
||||
test-short: test-go ## Run only short Go tests
|
||||
|
||||
Reference in New Issue
Block a user