-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.35 KB
/
Copy pathquality.yml
File metadata and controls
42 lines (39 loc) · 1.35 KB
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
name: Quality
on: [push]
jobs:
check_prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
- name: Install npm packages
run: npm install
- name: Check Prettier
run: npx prettier --check .
check_php_lint:
runs-on: ubuntu-latest
needs: ["check_prettier"]
strategy:
matrix:
PHP_VERSION: ["8.2"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: "Setup PHP ${{ matrix.PHP_VERSION }}"
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: "${{ matrix.PHP_VERSION }}"
coverage: "none"
- name: "Run phplint"
run: |
curl -Ls https://github.com/overtrue/phplint/releases/download/9.0.3/phplint.phar -o /usr/local/bin/phplint
chmod +x /usr/local/bin/phplint
/usr/local/bin/phplint -vvv --no-cache
check_docker_build:
runs-on: ubuntu-latest
needs: ["check_php_lint"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build Docker Image
run: docker build -t mock-saml2-idp:dev .