forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·77 lines (67 loc) · 2 KB
/
checks.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
65
66
67
68
69
70
71
72
73
74
75
76
77
name: checks
on: [pull_request, push]
permissions:
contents: read
pull-requests: read
jobs:
tests:
runs-on: ubuntu-latest
outputs:
all: ${{ steps.changes.outputs.all }}
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
nodejs: [ 19.x ]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, gd, json, readline, xsl, imagick
tools: composer:v2
coverage: none
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}
- name: Install Composer packages
run: composer install --no-interaction --no-progress
- name: Install Node.js packages
run: cp public/package.json .; cp public/package-lock.json .; npm clean-install
- name: PHP Unit Test
run: scripts/PHPUnit/run_tests.sh
env:
GHRUN: "yes"
- name: JS Unit Test
run: npm test
env:
GHRUN: "yes"
- name: PHP CS Fixer
run: scripts/PHP-CS-Fixer/run_check.sh
env:
GHRUN: "yes"
PR_NUMBER: ${{ github.event.number }}
GH_SHA: ${{ github.sha }}
- name: Language Sort Check
run: scripts/sort_langfile_entries.sh check
env:
GHRUN: "yes"
PR_NUMBER: ${{ github.event.number }}
GH_SHA: ${{ github.sha }}
- name: Special Char Checker
run: scripts/Special-Char-Checker/special-char-checker.sh
env:
GHRUN: "yes"
PR_NUMBER: ${{ github.event.number }}
GH_SHA: ${{ github.sha }}
- name: Copyright Check
run: scripts/Copyright-Checker/copyright-checker.sh
env:
GHRUN: "yes"
PR_NUMBER: ${{ github.event.number }}
GH_SHA: ${{ github.sha }}