-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (51 loc) · 1.54 KB
/
test-runner.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
name: PHP Unit Test Runner
on:
push:
branches:
- master
- develop
- feature/self-asserted-tokens
- feature/symfony6-upgrade
- 'feature/sat-*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.2' ]
experimental: [ false ]
include:
- php-versions: '8.3'
experimental: true
env:
APP_ENV: test
timeout-minutes: 30
name: PHP ${{ matrix.php-versions }} on Ubuntu latest. Experimental == ${{ matrix.experimental }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Configure Composer Cache
run: composer config --global cache-dir ~/.composer
- name: Setup Node.js and Yarn
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Yarn
run: |
curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- name: Install Composer Dependencies
run: composer install --prefer-dist
- name: Install Frontend Dependencies
run: composer frontend-install
- id: checks
name: Run Composer Check
run: composer check
- name: Display System Log on Failure
if: failure()
run: sudo tail -2000 /var/log/syslog