forked from beezwax/WP-Publish-to-Apple-News
-
Notifications
You must be signed in to change notification settings - Fork 71
50 lines (42 loc) · 1.4 KB
/
all-pr-tests.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
name: "All Pull Request Tests"
on:
pull_request:
branches:
- develop
- release/*
types: [opened, synchronize, reopened, ready_for_review]
jobs:
general-and-node-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Run General Tests
uses: alleyinteractive/action-test-general@develop
- name: Run Node Tests
uses: alleyinteractive/action-test-node@develop
with:
node-version: '20'
skip-audit: 'true'
php-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
php-version: ['8.2', '8.1', '8.0']
concurrency:
group: php-${{ matrix.php-version }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Run PHP Tests
uses: alleyinteractive/action-test-php@feature/issue-1/allow-phpunit-setup-own-tests
with:
install-wordpress: 'false'
php-version: ${{ matrix.php-version }}
wordpress-host: 'false'