build(deps): bump actions/dependency-review-action from 4.3.4 to 4.4.0 #300
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
# | |
# - 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 |