2022-11-02 12:26:57 +00:00
|
|
|
name: Test
|
|
|
|
|
2022-07-19 12:12:51 +00:00
|
|
|
on:
|
2022-11-02 12:26:57 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-07-19 12:12:51 +00:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-03 00:50:52 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-14 11:52:47 +00:00
|
|
|
|
|
|
|
# Node
|
2024-08-26 22:32:17 +00:00
|
|
|
- uses: pnpm/action-setup@v4
|
2024-03-03 00:50:52 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2022-07-19 12:12:51 +00:00
|
|
|
with:
|
2023-05-25 21:29:05 +00:00
|
|
|
cache: 'pnpm'
|
2023-05-14 11:52:47 +00:00
|
|
|
node-version-file: '.nvmrc'
|
2022-11-14 15:16:50 +00:00
|
|
|
|
2023-05-14 11:52:47 +00:00
|
|
|
# Docker
|
2024-03-03 00:50:52 +00:00
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
2022-11-14 15:16:50 +00:00
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
- name: Prepare
|
|
|
|
run: |
|
2024-08-26 22:32:17 +00:00
|
|
|
pnpm install
|
2024-08-26 22:38:56 +00:00
|
|
|
pnpm exec playwright install --with-deps
|
2023-05-14 11:52:47 +00:00
|
|
|
pnpm run test:prepare
|
2022-11-14 15:16:50 +00:00
|
|
|
|
2022-07-19 12:12:51 +00:00
|
|
|
- name: Run your tests
|
2023-05-14 11:52:47 +00:00
|
|
|
run: pnpm test
|
2024-08-26 22:32:17 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
2024-08-26 22:42:21 +00:00
|
|
|
if: ${{ !cancelled() }}
|
2022-07-19 12:12:51 +00:00
|
|
|
with:
|
2024-08-26 22:42:21 +00:00
|
|
|
name: playwright-report
|
|
|
|
path: test-results/
|
|
|
|
retention-days: 7
|