build: run a third job for misc tests

This commit is contained in:
Vincent Bernat
2025-08-31 15:27:59 +02:00
parent 3ed9aaba13
commit fa9e48d16a
2 changed files with 15 additions and 6 deletions

View File

@@ -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

View File

@@ -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