build(deps): bump the npm-dependencies group across 1 directory with 15 updates #997
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: "flake build" | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: [ '*' ] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: ["26.05", "unstable"] | |
| os: ["ubuntu", "macos"] | |
| runs-on: ${{ matrix.os }}-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # NOTE: not using the nix-daemon causes different hashes in FOD | |
| # - name: Install Nix | |
| # uses: nixbuild/nix-quick-install-action@v30 | |
| # | |
| # - uses: nix-community/cache-nix-action@v6 | |
| # with: | |
| # primary-key: nix-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | |
| # restore-prefixes-first-match: nix-${{ runner.os }}-${{ matrix.target }}- | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - uses: DeterminateSystems/magic-nix-cache-action@v14 | |
| - name: build stable | |
| if: matrix.target != 'unstable' | |
| run: | | |
| nix build -L --max-jobs 1 \ | |
| --override-input nixpkgs github:NixOS/nixpkgs/nixos-${{ matrix.target }} | |
| - name: build unstable | |
| if: matrix.target == 'unstable' | |
| run: | | |
| nix build -L --max-jobs 1 | |
| - name: Install JS dependencies for E2E tests | |
| run: nix develop --command pnpm install --frozen-lockfile | |
| - name: E2E tests | |
| run: nix develop --command pnpm test:e2e ${{ matrix.os == 'ubuntu' && '--project=chromium --project=firefox' || '' }} | |
| - uses: actions/upload-artifact@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: test-results | |
| path: test-results/ | |
| retention-days: 14 |