-
Notifications
You must be signed in to change notification settings - Fork 1.1k
39 lines (35 loc) · 928 Bytes
/
lint.yml
File metadata and controls
39 lines (35 loc) · 928 Bytes
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
name: Lint
on:
push:
branches: [ main ]
pull_request:
jobs:
styles:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Run Script
run: testing/run_cs_check.sh
staticanalysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Get changed files
id: changedFiles
uses: tj-actions/changed-files@v46
- name: Run Script
run: |
composer install -d testing/
git fetch --no-tags --prune --depth=5 origin main
bash testing/run_staticanalysis_check.sh
env:
FILES_CHANGED: ${{ steps.changedFiles.outputs.all_changed_files }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}