-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
60 changed files
with
1,120 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: End to end Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
pull_request: | ||
branches: [ main, master ] | ||
jobs: | ||
test: | ||
timeout-minutes: 10 | ||
defaults: | ||
run: | ||
working-directory: ./tests/end-to-end | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@378c8285a4eaf12899d11bea686a763e906956af | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: 'npm' | ||
cache-dependency-path: ./tests/end-to-end/package-lock.json | ||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
npx playwright install --with-deps chromium | ||
- name: build sqlpage | ||
run: cargo build | ||
working-directory: ./examples/official-site | ||
- name: start official site and wait for it to be ready | ||
timeout-minutes: 1 | ||
run: | | ||
cargo run 2>/tmp/stderrlog & | ||
tail -f /tmp/stderrlog | grep -q "started successfully" | ||
working-directory: ./examples/official-site | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
- name: show server logs | ||
if: failure() | ||
run: cat /tmp/stderrlog | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: ./tests/end-to-end/playwright-report/ | ||
retention-days: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.