diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 5b4fa7e..3cb7207 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -10,25 +10,12 @@ jobs: test: name: Test runs-on: docker - container: - image: ghcr.io/cachix/devenv/devenv:latest steps: - - run: nix-env -i nodejs - uses: actions/checkout@v4 - - name: Install devenv.sh - run: | - nix \ - --extra-experimental-features nix-command \ - --extra-experimental-features flakes \ - profile install nixpkgs#devenv --priority 4 + - uses: cachix/install-nix-action@v31 + - run: nix profile install nixpkgs#devenv + - uses: rharkor/caching-for-turbo@v1.8 - run: devenv shell pnpm install - - run: | # https://github.com/oxc-project/oxc/issues/1690#issuecomment-1858814377 - nix \ - --extra-experimental-features nix-command \ - --extra-experimental-features flakes \ - run nixpkgs#patchelf -- \ - --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw)" \ - /workspace/pomp/pompy.dev/node_modules/@oxlint/linux-x64-gnu/oxlint - run: devenv shell pnpm lint - run: devenv shell pnpm build - run: devenv shell pnpm test:unit