-
Notifications
You must be signed in to change notification settings - Fork 258
71 lines (66 loc) · 1.64 KB
/
codestyle.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
name: Codestandard
on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request:
branches:
- main
- '[0-9]+.[0-9]+'
jobs:
syntax-job:
runs-on: ubuntu-latest
container:
image: domjudge/gitlabci:24.04
steps:
- uses: actions/checkout@v4
- name: Run the syntax checks
run: .github/jobs/syntax.sh
detect-dump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Search for leftover dump( statements"
run: .github/jobs/detect_dump.sh
php-linter:
runs-on: ubuntu-latest
container:
image: pipelinecomponents/php-linter:latest
steps:
- uses: actions/checkout@v4
- name: Detect PHP linting issues
run: >
parallel-lint --colors
lib/lib.*.php
etc
judge
webapp/src
webapp/tests
webapp/public
webapp/config
phpcs_compatibility:
runs-on: ubuntu-latest
container:
image: pipelinecomponents/php-codesniffer:latest
strategy:
matrix:
PHPVERSION: ["8.1", "8.2", "8.3"]
steps:
- run: apk add git
- uses: actions/checkout@v4
- name: Various fixes to this image
run: .github/jobs/fix_pipelinecomponents_image.sh
- name: Detect compatibility with supported PHP version
run: >
phpcs -s -p --colors
--standard=PHPCompatibility
--extensions=php
--runtime-set testVersion ${{ matrix.PHPVERSION }}
lib/lib.*.php
etc
judge
webapp/src
webapp/tests
webapp/public
webapp/config