This commit is contained in:
parent
923c965b8d
commit
197026ce8d
2 changed files with 10 additions and 29 deletions
|
@ -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
|
||||
|
|
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -35,6 +35,7 @@
|
|||
"patchelf",
|
||||
"pkgs",
|
||||
"pnpm",
|
||||
"pnpx",
|
||||
"pompy",
|
||||
"pompydev",
|
||||
"rehype",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue