Fix Remote Source Code Loading Bug (#23) #40
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
name: CI | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- "*.md" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set node version to 17.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 17.x | |
- name: Cache pnpm modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 6 | |
- name: Install deps | |
run: | | |
pnpm install | |
npx playwright install-deps chromium | |
- name: Run tests | |
run: pnpm test |