|
1 | | -on: |
| 1 | +on: # yamllint disable-line rule:truthy |
2 | 2 | pull_request: ~ |
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - "main" |
6 | 6 | - "[0-9].*" |
7 | 7 |
|
8 | | -name: Coding Standards |
| 8 | +name: "Coding Standards" |
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | php-cs-fixer: |
12 | | - name: php-cs-fixer |
| 12 | + name: "php-cs-fixer" |
13 | 13 |
|
14 | | - runs-on: ubuntu-latest |
| 14 | + runs-on: "ubuntu-latest" |
15 | 15 |
|
16 | 16 | strategy: |
17 | 17 | matrix: |
18 | 18 | php-version: |
19 | | - - 7.1 |
| 19 | + - "7.1" |
20 | 20 |
|
21 | 21 | steps: |
22 | | - - name: Checkout code |
23 | | - uses: actions/checkout@v3 |
| 22 | + - name: "Checkout code" |
| 23 | + uses: "actions/checkout@v3" |
24 | 24 |
|
25 | | - - name: Set up PHP |
26 | | - uses: shivammathur/setup-php@v2 |
| 25 | + - name: "Set up PHP" |
| 26 | + uses: "shivammathur/setup-php@v2" |
27 | 27 | with: |
28 | | - coverage: none |
29 | | - extensions: intl |
30 | | - php-version: ${{ matrix.php-version }} |
| 28 | + coverage: "none" |
| 29 | + extensions: "intl" |
| 30 | + php-version: "${{ matrix.php-version }}" |
31 | 31 |
|
32 | | - - name: Determine composer cache directory |
33 | | - id: composer-cache |
34 | | - run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT |
| 32 | + - name: "Determine composer cache directory" |
| 33 | + id: "composer-cache" |
| 34 | + run: "echo \"directory=$(composer config cache-dir)\" >> $GITHUB_OUTPUT" |
35 | 35 |
|
36 | | - - name: Cache dependencies installed with composer |
37 | | - uses: actions/cache@v3 |
| 36 | + - name: "Cache dependencies installed with composer" |
| 37 | + uses: "actions/cache@v3" |
38 | 38 | with: |
39 | | - path: ${{ steps.composer-cache.outputs.directory }} |
40 | | - key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }} |
| 39 | + path: "${{ steps.composer-cache.outputs.directory }}" |
| 40 | + key: "composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" |
41 | 41 | restore-keys: | |
42 | 42 | composer-${{ runner.os }}-${{ matrix.php-version }}- |
43 | 43 | composer-${{ runner.os }}- |
44 | 44 | composer- |
45 | 45 |
|
46 | | - - name: Download dependencies |
| 46 | + - name: "Download dependencies" |
47 | 47 | run: | |
48 | 48 | composer update --no-interaction --no-progress --optimize-autoloader |
49 | 49 | composer bin php-cs-fixer install --no-interaction --no-progress --optimize-autoloader |
50 | 50 |
|
51 | | - - name: Cache cache file for php-cs-fixer |
52 | | - uses: actions/cache@v3 |
| 51 | + - name: "Cache cache file for php-cs-fixer" |
| 52 | + uses: "actions/cache@v3" |
53 | 53 | with: |
54 | | - path: .php_cs.cache |
55 | | - key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }} |
| 54 | + path: ".php_cs.cache" |
| 55 | + key: "composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}" |
56 | 56 | restore-keys: | |
57 | 57 | composer-${{ runner.os }}-${{ matrix.php-version }}- |
58 | 58 | composer-${{ runner.os }}- |
59 | 59 | composer- |
60 | 60 |
|
61 | | - - name: Run php-cs-fixer |
| 61 | + - name: "Run php-cs-fixer" |
62 | 62 | run: | |
63 | 63 | vendor/bin/php-cs-fixer fix --diff --dry-run --verbose |
| 64 | +
|
| 65 | + yamllint: |
| 66 | + name: "yamllint" |
| 67 | + |
| 68 | + runs-on: "ubuntu-latest" |
| 69 | + |
| 70 | + steps: |
| 71 | + - name: "Checkout code" |
| 72 | + uses: "actions/checkout@v3" |
| 73 | + |
| 74 | + - name: "Lint YAML files" |
| 75 | + |
| 76 | + with: |
| 77 | + config_file: ".yamllint.yaml" |
| 78 | + file_or_dir: "." |
| 79 | + strict: true |
0 commit comments