-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (47 loc) · 1.63 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests
on:
- pull_request
- push
jobs:
docker:
name: Tests in docker
runs-on: ubuntu-latest
container: ghcr.io/concrete5-community/docker5:9
steps:
-
name: Prepare enviro
run: switch-composer 2
-
name: Checkout
uses: actions/checkout@v4
-
name: Check composer.json
run: composer --ansi --no-interaction validate --strict
-
# Step required when using a release version of Concrete, not a development one
name: Install Composer dependencies
run: composer --ansi --no-interaction install --optimize-autoloader --working-dir=/app
-
name: Prepare package
run: ln -s "$GITHUB_WORKSPACE" /app/packages/community_translation
-
name: Start services
run: ccm-service start db web
-
name: Check PHP Coding style
run: /app/concrete/bin/concrete5 --ansi --no-interaction -v c5:phpcs check --no-cache --php=7.4 /app/packages/community_translation
-
name: Install package
run: sudo -u www-data /app/concrete/bin/concrete5 --ansi --no-interaction c5:package:install community_translation
-
name: Populate test data
run: sudo -u www-data /app/concrete/bin/concrete5 c5:exec /app/packages/community_translation/test/populate-test-data.php
-
name: Run PHPUnit
env:
CT_TEST_API_ROOTURL: http://localhost
run: >
sudo -Eu www-data
/app/concrete/bin/concrete5 c5:exec /app/packages/community_translation/test/start.php
--
--colors=always --no-interaction --do-not-cache-result -v