|
10 | 10 | schedule: |
11 | 11 | - cron: '55 17 * * *' |
12 | 12 |
|
| 13 | +permissions: {} |
| 14 | + |
| 15 | +concurrency: |
| 16 | + group: ${{ github.workflow }}-${{ github.ref }}-main |
| 17 | + cancel-in-progress: true |
| 18 | + |
13 | 19 | jobs: |
14 | 20 | quality: |
15 | | - uses: prinsfrank/CI-PHP/.github/workflows/quality.yml@main |
| 21 | + permissions: |
| 22 | + contents: read |
| 23 | + uses: prinsfrank/CI-PHP/.github/workflows/quality.yml@7f532694f9ad3b0da45333d0c140b340488ac9b1 # v1.2.0 |
16 | 24 | with: |
17 | 25 | PHP_VERSION: '8.3' |
18 | 26 | PHP_VERSIONS: '["8.2", "8.3", "8.4", "8.5"]' |
19 | | - secrets: inherit |
| 27 | + secrets: |
| 28 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
20 | 29 |
|
21 | 30 | feature: |
22 | 31 | name: PHP Tests - Feature |
23 | 32 | runs-on: ubuntu-latest |
| 33 | + permissions: |
| 34 | + contents: read |
24 | 35 | strategy: |
25 | 36 | matrix: |
26 | 37 | php-version: ["8.2", "8.3", "8.4", "8.5"] |
27 | 38 | steps: |
28 | 39 | - name: Checkout code |
29 | | - uses: actions/checkout@v6 |
| 40 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 41 | + with: |
| 42 | + persist-credentials: false |
30 | 43 |
|
31 | 44 | - name: Setup PHP |
32 | | - uses: shivammathur/setup-php@v2 |
| 45 | + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 |
33 | 46 | with: |
34 | 47 | php-version: ${{ matrix.php-version }} |
35 | 48 | coverage: none |
36 | 49 |
|
37 | 50 | - name: Install dependencies |
38 | | - uses: ramsey/composer-install@v4 |
| 51 | + uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 |
39 | 52 |
|
40 | 53 | - name: Run Feature tests |
41 | 54 | run: composer run feature |
42 | 55 |
|
43 | 56 | samples: |
44 | 57 | name: PHP Tests - Samples |
45 | 58 | runs-on: ubuntu-latest |
| 59 | + permissions: |
| 60 | + contents: read |
46 | 61 | strategy: |
47 | 62 | matrix: |
48 | 63 | php-version: ["8.2", "8.3", "8.4", "8.5"] |
49 | 64 | steps: |
50 | 65 | - name: Checkout code |
51 | | - uses: actions/checkout@v6 |
| 66 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 67 | + with: |
| 68 | + persist-credentials: false |
52 | 69 |
|
53 | 70 | - name: Setup PHP |
54 | | - uses: shivammathur/setup-php@v2 |
| 71 | + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 |
55 | 72 | with: |
56 | 73 | php-version: ${{ matrix.php-version }} |
57 | 74 | coverage: none |
58 | 75 |
|
59 | 76 | - name: Install dependencies |
60 | | - uses: ramsey/composer-install@v4 |
| 77 | + uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 |
61 | 78 |
|
62 | 79 | - name: Run Samples tests |
63 | 80 | run: vendor/bin/phpunit tests/Samples/ |
0 commit comments