|
1 | 1 | name: "Rulewerk Tests"
|
2 | 2 | on:
|
3 |
| - pull_request: |
4 |
| - branches: |
5 |
| - - main |
6 |
| - - master |
7 |
| - push: |
8 |
| - branches: |
9 |
| - - main |
10 |
| - - master |
| 3 | + pull_request: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + - master |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + - master |
11 | 11 | jobs:
|
12 |
| - unit-tests: |
13 |
| - name: "Rulewerk Unit Tests" |
14 |
| - runs-on: ubuntu-latest |
15 |
| - steps: |
16 |
| - - uses: actions/checkout@v3 |
17 |
| - - uses: DeterminateSystems/nix-installer-action@v4 |
18 |
| - - uses: DeterminateSystems/magic-nix-cache-action@v2 |
19 |
| - - env: |
20 |
| - BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} |
21 |
| - run: echo "name=BRANCH_NAME::${BRANCH_NAME_OR_REF#refs/heads/}" >> $GITHUB_ENV |
22 |
| - - run: echo "name=PR_NUMBER::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV |
23 |
| - - run: nix-shell --pure --run "mvn clean test jacoco:report && mvn coveralls:report -D repoToken=${{ secrets.COVERALLS_TOKEN }} -D serviceBuildUrl=https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks -D branch=$BRANCH_NAME -D pullRequest=$PR_NUMBER" |
24 |
| - integration-tests: |
25 |
| - name: "Rulewerk Integration Tests" |
26 |
| - needs: unit-tests |
27 |
| - runs-on: ubuntu-latest |
28 |
| - steps: |
29 |
| - - uses: actions/checkout@v3 |
30 |
| - - uses: DeterminateSystems/nix-installer-action@v4 |
31 |
| - - uses: DeterminateSystems/magic-nix-cache-action@v2 |
32 |
| - - env: |
33 |
| - BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} |
34 |
| - run: echo "name=BRANCH_NAME::${BRANCH_NAME_OR_REF#refs/heads/}" >> $GITHUB_ENV |
35 |
| - - run: echo "name=PR_NUMBER::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV |
36 |
| - - run: nix-shell --pure --run "mvn clean verify -Dit.test=!org.semanticweb.rulewerk.integrationtests.vlogissues.*IT -DfailIfNoTests=false" |
| 12 | + unit-tests: |
| 13 | + name: "Rulewerk Unit Tests" |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + - uses: DeterminateSystems/nix-installer-action@v12 |
| 18 | + - uses: DeterminateSystems/magic-nix-cache-action@v7 |
| 19 | + - env: |
| 20 | + BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} |
| 21 | + run: echo "name=BRANCH_NAME::${BRANCH_NAME_OR_REF#refs/heads/}" >> $GITHUB_ENV |
| 22 | + - run: echo "name=PR_NUMBER::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV |
| 23 | + - run: nix-shell --pure --run "mvn clean test jacoco:report && mvn coveralls:report -D repoToken=${{ secrets.COVERALLS_TOKEN }} -D serviceBuildUrl=https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks -D branch=$BRANCH_NAME -D pullRequest=$PR_NUMBER" |
| 24 | + integration-tests: |
| 25 | + name: "Rulewerk Integration Tests" |
| 26 | + needs: unit-tests |
| 27 | + runs-on: ubuntu-latest |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + - uses: DeterminateSystems/nix-installer-action@v12 |
| 31 | + - uses: DeterminateSystems/magic-nix-cache-action@v7 |
| 32 | + - env: |
| 33 | + BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} |
| 34 | + run: echo "name=BRANCH_NAME::${BRANCH_NAME_OR_REF#refs/heads/}" >> $GITHUB_ENV |
| 35 | + - run: echo "name=PR_NUMBER::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV |
| 36 | + - run: nix-shell --pure --run "mvn clean verify -Dit.test=!org.semanticweb.rulewerk.integrationtests.vlogissues.*IT -DfailIfNoTests=false" |
0 commit comments