62 lines (62 loc) · 1.84 KB
/
symfony6.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
50
51
52
53
54
55
56
57
58
59
60
61
62
#name: Symfony 6
#
#on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
#
#jobs:
# symfony-tests:
# runs-on: ${{ matrix.operating-system }}
# name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} on ${{ matrix.operating-system }}
# strategy:
# fail-fast: true
# matrix:
# operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
# php: [ '8.1' ]
# symfony: [ '6.0.*' ]
#
# steps:
# - uses: actions/checkout@master
#
# - name: Setup PHP ${{ matrix.php }}
# uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
# with:
# php-version: ${{ matrix.php }}
# tools: flex
#
# - name: Composer get cache directory
# id: composer-cache
# run: |
# echo "::set-output name=dir::$(composer config cache-files-dir)"
#
# - name: Composer cache
# uses: actions/cache@v3
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-composer-
#
# - name: Download dependencies
# env:
# SYMFONY_REQUIRE: ${{ matrix.symfony }}
# uses: ramsey/composer-install@v1
# with:
# composer-options: "--no-progress --prefer-dist --optimize-autoloader"
#
# - name: Test symfony security
# if: runner.os == 'Linux'
# uses: symfonycorp/security-checker-action@v2
# with:
# disable-exit-code: 1
# id: security-check
# - name: Display the vulnerabilities as JSON
# if: runner.os == 'Linux'
# run: echo ${{ steps.security-check.outputs.vulns }}
#
# - name: Run test suite
# env:
# SYMFONY_DEPRECATIONS_HELPER: disabled
# run: ./vendor/bin/phpunit