ci: install dependencies #10
This file contains hidden or 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: π Check formatting | |
| on: | |
| push: | |
| branches-ignore: | |
| - release | |
| tags-ignore: | |
| - "*" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| format-check: | |
| name: π Check code formatting with "just format-all" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π§° Checkout code | |
| uses: actions/checkout@v5 | |
| - name: βοΈ Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - name: π Cache dependencies | |
| uses: cachix/cachix-action@v16 | |
| with: | |
| name: devenv | |
| - name: π§ Install devenv.sh | |
| run: nix profile install nixpkgs#devenv | |
| - name: π³ Format code | |
| run: devenv shell "composer install && just format" |