Skip to content

Commit

Permalink
chore: use self-hosted runner for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elsirion committed Oct 22, 2024
1 parent d1ad74c commit 1dee289
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
};
Expand Down

0 comments on commit 1dee289

Please sign in to comment.