Skip to content

Commit 48fca1d

Browse files
Michael Vasseurvmcj
authored andcommitted
Setup minimal unit testing workflow
Reusing what we had before, later we can test the full matrix we expect.
1 parent ae8dd69 commit 48fca1d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/unit-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99

1010
jobs:
1111
check-static-codecov:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Keep the original job as its 'required'
15+
run: exit 0
16+
17+
unit-tests:
1218
services:
1319
sqlserver:
1420
image: mariadb
@@ -19,13 +25,19 @@ jobs:
1925
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
2026
container:
2127
image: domjudge/gitlabci:24.04
28+
strategy:
29+
matrix:
30+
PHPVERSION: [8.1]
31+
TEST: [UNIT]
2232
runs-on: ubuntu-latest
2333
steps:
2434
- uses: actions/checkout@v4
2535
- name: Download latest codecov upload script
2636
run: wget https://codecov.io/bash -O newcodecov
2737
- name: Detect changes to manually verify
2838
run: diff newcodecov .github/jobs/uploadcodecov.sh
39+
- name: Run the unit tests
40+
run: .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }}
2941
- name: Upload artifact for debugging
3042
uses: actions/upload-artifact@v3
3143
with:

0 commit comments

Comments
 (0)