Skip to content

Commit dac3fc8

Browse files
ci: adopt shared SymPress workflows
1 parent 03d9269 commit dac3fc8

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

.github/workflows/qa.yml

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,28 @@
11
name: QA
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- main
7-
pull_request:
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
11-
qa:
12-
name: PHP ${{ matrix.php-version }}
13-
runs-on: ubuntu-latest
14+
workflows:
15+
uses: sympress/workflows/.github/workflows/lint-workflows.yml@v1
1416

17+
qa:
1518
strategy:
1619
fail-fast: false
1720
matrix:
1821
php-version:
1922
- '8.4'
2023
- '8.5'
21-
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
26-
- name: Setup PHP
27-
uses: shivammathur/setup-php@v2
28-
with:
29-
php-version: ${{ matrix.php-version }}
30-
coverage: none
31-
tools: composer:v2
32-
33-
- name: Validate Composer metadata
34-
run: composer validate --strict
35-
36-
- name: Install dependencies
37-
run: composer install --no-interaction --no-progress --prefer-dist
38-
39-
- name: Verify PHPCS standards are registered
40-
run: vendor/bin/phpcs -i
41-
42-
- name: Run QA
43-
run: composer qa
24+
uses: sympress/workflows/.github/workflows/sympress-qa.yml@v1
25+
with:
26+
php_version: ${{ matrix.php-version }}
27+
secrets:
28+
COMPOSER_AUTH_JSON: ${{ secrets.COMPOSER_AUTH_JSON }}

0 commit comments

Comments
 (0)