-
Notifications
You must be signed in to change notification settings - Fork 19
88 lines (71 loc) · 2.74 KB
/
static.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Static analysis
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Nix
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
- name: Prepare Nix shell
run: nix develop --impure .#ci_lowest
- name: Download dependencies
run: nix develop --impure .#ci_lowest -c composer update --no-interaction --no-progress
- name: Run PHPStan
run: nix develop --impure .#ci_lowest -c phpstan analyze --no-progress
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Nix
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
- name: Prepare Nix shell
run: nix develop --impure .#ci_lowest
- name: Download dependencies
run: nix develop --impure .#ci_lowest -c composer update --no-interaction --no-progress
- name: Run PHP CS Fixer
run: nix develop --impure .#ci_lowest -c php-cs-fixer fix --diff --dry-run
# psalm:
# name: Psalm
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
#
# - name: Set up Nix
# uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v27
# with:
# extra_nix_config: |
# access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
#
# - name: Set up magic Nix cache
# uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
#
# - name: Prepare Nix shell
# run: nix develop --impure .#ci_lowest
#
# - name: Download dependencies
# run: nix develop --impure .#ci_lowest -c composer update --no-interaction --no-progress
#
# - name: Run Psalm
# run: nix develop --impure .#ci_lowest -c psalm --no-progress --root $PWD --output-format=github