Merge pull request #136 from NamesMT/patch-1 #85
This file contains hidden or 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: 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: Install Playwright browsers | |
| run: cd test && npx playwright install --with-deps chromium | |
| - name: Run tests | |
| run: cd test && npm run test:e2e |