ci: fix failing tests
Some checks failed
Test / Test (push) Failing after 1h17m44s

This commit is contained in:
Kim, Jimin 2025-06-02 13:51:51 +09:00
parent d28e2e9b7f
commit 7f239c85f9
Signed by: pomp
GPG key ID: D3932F82A0667A3B

View file

@ -17,8 +17,8 @@ jobs:
- uses: cachix/install-nix-action@v31 - uses: cachix/install-nix-action@v31
with: with:
extra_nix_config: | # https://github.com/NixOS/nix/issues/11295 extra_nix_config: | # https://github.com/NixOS/nix/issues/11295
sandbox = false sandbox = true
- run: nix --option sandbox false profile install nixpkgs#devenv - run: nix --option sandbox true profile install nixpkgs#devenv
- uses: rharkor/caching-for-turbo@v1.8 - uses: rharkor/caching-for-turbo@v1.8
- name: Run tests - name: Run tests
run: | run: |
@ -26,21 +26,21 @@ jobs:
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
# https://github.com/NixOS/nix/issues/670#issuecomment-304524165 # 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_STORE_DIR=$HOME/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_STATE_DIR=$HOME/nix/var/nix
export NIX_LOG_DIR=$HOME/nix/var/log/nix export NIX_LOG_DIR=$HOME/nix/var/log/nix
echo pnpm install echo pnpm install
devenv shell pnpm install devenv shell --nix-option sandbox true pnpm install
echo pnpm lint echo pnpm lint
devenv shell pnpm lint devenv shell --nix-option sandbox true pnpm lint
echo pnpm build echo pnpm build
devenv shell pnpm build devenv shell --nix-option sandbox true pnpm build
echo pnpm test:unit echo pnpm test:unit
devenv shell pnpm test:unit devenv shell --nix-option sandbox true pnpm test:unit
echo pnpm test:e2e echo pnpm test:e2e
devenv shell pnpm test:e2e devenv shell --nix-option sandbox true pnpm test:e2e