-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.07 KB
/
lint.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
name: Lint
on:
push:
branches:
- master
pull_request:
# Run on all PRs
env:
CI: "true"
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer update
--no-ansi
--no-interaction
--no-progress
--no-suggest
--prefer-dist
- name: PHPCS
run: composer phpcs
# TODO: run only if .github/codecov.yml changed
codecov-config:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Send to Codecov to validate
run: curl -X POST --data-binary @.github/codecov.yml https://codecov.io/validate