Skip to content

Commit aaee78d

Browse files
committed
Run all integration tests
1 parent 0bc9bff commit aaee78d

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ defaults:
99
shell: bash
1010
on:
1111
push:
12-
branches: ["main"]
13-
tags: ["*"]
12+
branches: ['main']
13+
tags: ['*']
1414
pull_request:
1515
workflow_dispatch:
1616

@@ -39,15 +39,15 @@ jobs:
3939
env:
4040
IS_CI: 1
4141
options: --name nextcloud-antivirus-build-container
42-
needs:
42+
needs:
4343
- build-devcontainer
4444
steps:
4545
- uses: actions/checkout@v4
4646

4747
- name: postCreateCommands
4848
run: |
4949
source .devcontainer/postCreateCommands.sh
50-
50+
5151
- name: add composer bin to path
5252
run: |
5353
echo $(composer config home --global)/vendor/bin >> $GITHUB_PATH
@@ -82,21 +82,13 @@ jobs:
8282
run: |
8383
docker network connect nextcloud-gdata-antivirus_nextcloud-network nextcloud-antivirus-build-container
8484
85-
- name: run tests
86-
id: bats-tests
85+
- name: run integration tests
8786
env:
8887
CLIENT_ID: ${{ secrets.VAAS_CLIENT_ID }}
8988
CLIENT_SECRET: ${{ secrets.VAAS_CLIENT_SECRET }}
9089
run: |
91-
if bats --verbose-run --timing --trace ./tests/bats; then
92-
echo "bats_run=success" | tee -a "$GITHUB_OUTPUT";
93-
else
94-
echo "bats_run=fail" | tee -a "$GITHUB_OUTPUT";
95-
fi
96-
97-
- name: fail if bats tests did fail
98-
if: steps.bats-tests.outputs.bats_run == 'fail'
99-
run: exit 1
90+
bats --verbose-run --timing --trace ./tests/bats
91+
./vendor/bin/phpunit --bootstrap tests/integration/bootstrap.php tests/integration/
10092
10193
- uses: actions/upload-artifact@master
10294
with:

0 commit comments

Comments
 (0)