mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Merge pull request #1118 from strukturag/ci-split-test
CI: Split test jobs to speed up total actions time.
This commit is contained in:
commit
f7e545f0b5
1 changed files with 33 additions and 4 deletions
37
.github/workflows/test.yml
vendored
37
.github/workflows/test.yml
vendored
|
|
@ -22,10 +22,7 @@ permissions:
|
|||
contents: read
|
||||
|
||||
jobs:
|
||||
go:
|
||||
env:
|
||||
MAXMIND_GEOLITE2_LICENSE: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
|
||||
USE_DB_IP_GEOIP_DATABASE: "1"
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version:
|
||||
|
|
@ -45,10 +42,42 @@ jobs:
|
|||
make proxy -j$(nproc)
|
||||
make server -j$(nproc)
|
||||
|
||||
go:
|
||||
env:
|
||||
MAXMIND_GEOLITE2_LICENSE: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
|
||||
USE_DB_IP_GEOIP_DATABASE: "1"
|
||||
strategy:
|
||||
matrix:
|
||||
go-version:
|
||||
- "1.24"
|
||||
- "1.25"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
make test TIMEOUT=120s
|
||||
|
||||
coverage:
|
||||
env:
|
||||
MAXMIND_GEOLITE2_LICENSE: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
|
||||
USE_DB_IP_GEOIP_DATABASE: "1"
|
||||
strategy:
|
||||
matrix:
|
||||
go-version:
|
||||
- "1.24"
|
||||
- "1.25"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Generate coverage report
|
||||
run: |
|
||||
make cover TIMEOUT=120s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue