diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 5c038e1..d0f95c7 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -54,25 +54,30 @@ jobs: test: name: Test - runs-on: ubuntu-latest + runs-on: [self-hosted, linux] + timeout-minutes: 30 steps: - name: Clone repository uses: actions/checkout@v4 - - name: Install dependencies - uses: ./.github/actions/install-deps - - name: Setup Nix uses: ./.github/actions/setup-nix with: cachix_auth_token: ${{ secrets.CACHIX_AUTH_TOKEN }} - - name: Setup Playwright - run: pnpm exec playwright install + - name: Setup Nix shell and run commands + run: | + nix develop --accept-flake-config --command bash << EOF + # Install dependencies + pnpm install + + # Setup Playwright + pnpm exec playwright install - - name: Run Tests - run: nix develop -c pnpm test + # Run Tests + pnpm test + EOF build-docs: name: Build Docs diff --git a/flake.nix b/flake.nix index c06474f..8872e82 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,9 @@ fedimint.packages.${system}.devimint fedimint.packages.${system}.gateway-pkgs fedimint.packages.${system}.fedimint-pkgs + pkgs.pnpm + pkgs.nodejs_20 + pkgs.playwright-driver ] ++ prev.nativeBuildInputs; }); };