-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (47 loc) · 1.43 KB
/
static.yaml
File metadata and controls
60 lines (47 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Static analysis
on:
push:
branches:
- master
pull_request:
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set up Cachix
uses: cachix/cachix-action@v10
with:
name: bernardphp-drivers
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Download dependencies
run: nix develop -c composer update --no-interaction --no-progress
- name: Run PHPStan
run: nix develop -c phpstan analyze --no-progress
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set up Cachix
uses: cachix/cachix-action@v10
with:
name: bernardphp-drivers
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Download dependencies
run: nix develop -c composer update --no-interaction --no-progress
- name: Run PHP CS Fixer
run: nix develop -c php-cs-fixer fix --diff --dry-run