-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.33 KB
/
test-analyse.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: Test/Analyse
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request_target:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
call-install-deps:
uses: ./.github/workflows/install-deps.yml
with:
mode: 'dev'
secrets: inherit
test:
runs-on: ubuntu-latest
needs: call-install-deps
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup php
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: cs2pr
- name: Load Cache
uses: actions/cache@v4
with:
path: |
vendor
node_modules
dist
key: deps-dev-${{ hashFiles('composer.lock') }}-${{ hashFiles('package-lock.json') }}
fail-on-cache-miss: true
id: cache
- name: Build assets
run: npm run production
- name: PHPSTAN
run: composer run phpstan:ci
- name: PHPCS
id: phpcs
continue-on-error: true
run: composer run phpcs:ci
- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml --graceful-warnings
# - name: Run integration Tests
# run: |
# npm run test:e2e