-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (60 loc) · 1.76 KB
/
bedrock-php.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
63
64
65
66
name: Test Suite
on:
push:
branches:
- "**/*"
- "!main"
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
env:
TRAVIS_COMMIT: ${{ github.sha }}
TRAVIS_BRANCH: ${{ github.ref }}
jobs:
PHP_Phan:
name: Phan
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- name: checkout
uses: actions/[email protected]
with:
# Set fetch-depth to 100 so that we can compare HEAD with a good chunk of git log history
fetch-depth: 100
# Run this after the packages are installed to ensure our apt-mirror is set up.
- name: Install PHP and Libraries
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
with:
tools: composer:v2.7.1
php-version: 8.1.28
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.CODE_EXPENSIFY_TOKEN }}
fail-fast: true
- name: Setup Composer Cache
uses: ./.github/actions/composite/setup-composer-cache
- name: Run Phan tests
run: "php ./ci/phan.php"
PHP_Style:
name: PHP Style
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- name: checkout
uses: actions/[email protected]
with:
# Set fetch-depth to 100 so that we can compare HEAD with a good chunk of git log history
fetch-depth: 100
- name: Install PHP and Libraries
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
with:
tools: composer:v2.7.1
php-version: 8.1.28
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.CODE_EXPENSIFY_TOKEN }}
fail-fast: true
- name: Setup Composer Cache
uses: ./.github/actions/composite/setup-composer-cache
- name: Test for Style
run: "php ./ci/style.php"