diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index a6e8306..062033e 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -13,34 +13,14 @@ jobs: steps: - run: apt-get update && apt-get install sudo - uses: actions/setup-node@v4 - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v31 with: - extra_nix_config: | # https://github.com/NixOS/nix/issues/11295 - sandbox = true - - run: nix --option sandbox true profile install nixpkgs#devenv + node-version: 22 + cache: pnpm + - uses: actions/checkout@v4 - uses: rharkor/caching-for-turbo@v1.8 - - name: Run tests - run: | - # https://stackoverflow.com/a/78185023/12979111 - export HOME=$(mktemp -d) - - # https://github.com/NixOS/nix/issues/670#issuecomment-304524165 - export NIX_STORE_DIR=/nix/store # binary cache 'https://cache.nixos.org' is for Nix stores with prefix '/nix/store' - export NIX_STATE_DIR=$HOME/nix/var/nix - export NIX_LOG_DIR=$HOME/nix/var/log/nix - - echo pnpm install - devenv shell --nix-option sandbox true pnpm install - - echo pnpm lint - devenv shell --nix-option sandbox true pnpm lint - - echo pnpm build - devenv shell --nix-option sandbox true pnpm build - - echo pnpm test:unit - devenv shell --nix-option sandbox true pnpm test:unit - - echo pnpm test:e2e - devenv shell --nix-option sandbox true pnpm test:e2e + - run: pnpx playwright install --with-deps + - run: pnpm install + - run: pnpm lint + - run: pnpm build + - run: pnpm test:unit + - run: pnpm test:e2e diff --git a/.vscode/settings.json b/.vscode/settings.json index 4e2bb6f..c030c39 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -35,6 +35,7 @@ "patchelf", "pkgs", "pnpm", + "pnpx", "pompy", "pompydev", "rehype",