Skip to content

Commit

Permalink
Merge pull request #93 from adrienZ/feat/github-action-tests
Browse files Browse the repository at this point in the history
feat: add github action for tests
  • Loading branch information
xiaoluoboding authored Oct 20, 2024
2 parents a8bb380 + 71cecc5 commit 037db2e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: tests-ci

on:
push:
branches:
- '**' # Matches every branch
pull_request:
branches:
- main

jobs:
install-and-test:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable pnpm
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: pnpm i

- name: Build lib
run: npm run build:lib

- name: Install tests dependencies
run: cd test && pnpm i

- name: Download Playwright browser
run: cd test && pnpx playwright install

- name: Run tests
run: cd test && npm run test:e2e

0 comments on commit 037db2e

Please sign in to comment.