-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1022 Bytes
/
tests.yaml
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
name: Code Analysis
on:
pull_request: null
push:
branches:
- main
jobs:
main_project:
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
actions:
-
name: "Composer Validate"
run: composer validate --strict --ansi
-
name: "Tests"
run: vendor/bin/phpunit
-
name: "Parse code"
run: vendor/bin/php-parse hello_world.php
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Install project Composer dependencies
uses: "ramsey/composer-install@v1"
- run: ${{ matrix.actions.run }}