|
1 | 1 | name: Test |
2 | 2 | on: |
3 | | - push: |
4 | | - branches: |
5 | | - - '**' # This will match all branches |
6 | | - - '!release' # This excludes the release branch |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - '**' # This will match all branches |
10 | | - - '!release' # This excludes the release branch |
11 | | - workflow_dispatch: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - "**" # This will match all branches |
| 6 | + - "!release" # This excludes the release branch |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - "**" # This will match all branches |
| 10 | + - "!release" # This excludes the release branch |
| 11 | + workflow_dispatch: |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - build: |
| 14 | + build: |
| 15 | + runs-on: ubuntu-latest |
15 | 16 |
|
16 | | - runs-on: ubuntu-latest |
17 | | - |
18 | | - steps: |
19 | | - - uses: actions/checkout@v2 |
20 | | -# - name: Install packages |
21 | | -# run: sudo apt -y --no-install-recommends install ca-certificates curl git php7.4-cli php7.4-curl php7.4-json php7.4-mbstring php7.4-xml php7.4-gmp composer |
22 | | - - name: Install dependencies |
23 | | - uses: php-actions/composer@v5 |
24 | | - with: |
25 | | - php_version: 8.2 |
26 | | - version: 2 |
27 | | - - name: Run tests |
28 | | - uses: php-actions/composer@v6 |
29 | | - with: |
30 | | - command: run test |
31 | | - php_version: 8.2 |
32 | | - version: 2 |
33 | | - env: |
34 | | - # because of: 1x: Class "ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client" should implement method "Symfony\Contracts\HttpClient\HttpClientInterface::withOptions(array $options)": Returns a new instance of the client with new default options. |
35 | | - SYMFONY_DEPRECATIONS_HELPER: weak |
36 | | -# - name: PHPUnit tests |
37 | | -# uses: php-actions/phpunit@v2 |
38 | | -# with: |
39 | | -# php_version: 8.2 |
40 | | -# version: 8 |
41 | | -# - name: Run tests |
42 | | -# run: vendor/bin/simple-phpunit |
43 | | -# - name: Run tests |
44 | | -# run: php7.4 vendor/bin/simple-phpunit |
45 | | - - name: Try to build docker image |
46 | | - run: docker build . |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v2 |
| 19 | + # - name: Install packages |
| 20 | + # run: sudo apt -y --no-install-recommends install ca-certificates curl git php7.4-cli php7.4-curl php7.4-json php7.4-mbstring php7.4-xml php7.4-gmp composer |
| 21 | + - name: Install dependencies |
| 22 | + uses: php-actions/composer@v5 |
| 23 | + with: |
| 24 | + php_version: 8.2 |
| 25 | + version: 2 |
| 26 | + - name: Run tests |
| 27 | + uses: php-actions/composer@v6 |
| 28 | + with: |
| 29 | + command: run test |
| 30 | + php_version: 8.2 |
| 31 | + version: 2 |
| 32 | + env: |
| 33 | + # because of: 1x: Class "ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client" should implement method "Symfony\Contracts\HttpClient\HttpClientInterface::withOptions(array $options)": Returns a new instance of the client with new default options. |
| 34 | + SYMFONY_DEPRECATIONS_HELPER: weak |
| 35 | + # - name: PHPUnit tests |
| 36 | + # uses: php-actions/phpunit@v2 |
| 37 | + # with: |
| 38 | + # php_version: 8.2 |
| 39 | + # version: 8 |
| 40 | + # - name: Run tests |
| 41 | + # run: vendor/bin/simple-phpunit |
| 42 | + # - name: Run tests |
| 43 | + # run: php7.4 vendor/bin/simple-phpunit |
| 44 | + - name: Try to build docker image |
| 45 | + run: docker build . |
0 commit comments