-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.29 KB
/
testing.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
42
43
44
45
46
47
name: Testing
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Composer
id: cache-composer
uses: actions/cache@v3
with:
path: vendor
key: ${{ hashFiles('composer.lock') }}
- name: Cache NPM
id: cache-npm
uses: actions/cache@v3
with:
path: node_modules
key: ${{ hashFiles('package-lock.json') }}
- name: Install
run: ./bin/util/install
- name: Start
run: ./bin/util/start
- name: ESLint
run: ./bin/node/npm run lint
if: always()
- name: Check Blade
if: always()
run: ./bin/node/npm run blade-formatter -- -c
- name: ECS
run: ./bin/util/exec app composer cs:check
if: always()
- name: Stan
run: ./bin/util/exec app composer stan
if: always()
- name: PHPUnit
run: ./bin/app/test
if: always()