-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (45 loc) · 1.32 KB
/
code-check.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
name: VIP Scans and other code checks
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
workflow_call:
workflow_dispatch:
inputs:
tmate_enabled:
type: boolean
description: 'Enable "tmate" for debugging'
required: false
default: false
jobs:
check:
name: Check the code
runs-on: ubuntu-latest
steps:
- name: Setup tmate session for Debugging, if inputs.tmate_enabled is true
uses: mxschmitt/action-tmate@v3
if: ${{ inputs.tmate_enabled }}
timeout-minutes: 10
with:
detached: true
- name: Checkout code
uses: actions/checkout@master
- name: Prepare composer
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer validate
$GITHUB_WORKSPACE/dev-workspace/run composer install
- name: Show version of tools inside the dev-workspace
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer info:versions
- name: Run PHP check
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer check:php
- name: Run Lint check
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer check:lint
- name: Run Long Path check
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer check:longpath