2022-11-02 13:26:57 +01:00
|
|
|
name: Test
|
|
|
|
|
2022-07-19 14:12:51 +02:00
|
|
|
on:
|
2022-11-02 13:26:57 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-07-19 14:12:51 +02:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-03 01:50:52 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-14 13:52:47 +02:00
|
|
|
|
|
|
|
# Node
|
2024-03-03 01:50:52 +01:00
|
|
|
- uses: pnpm/action-setup@v3
|
|
|
|
- uses: actions/setup-node@v4
|
2022-07-19 14:12:51 +02:00
|
|
|
with:
|
2023-05-25 23:29:05 +02:00
|
|
|
cache: 'pnpm'
|
2023-05-14 13:52:47 +02:00
|
|
|
node-version-file: '.nvmrc'
|
2022-11-14 16:16:50 +01:00
|
|
|
|
2023-05-14 13:52:47 +02:00
|
|
|
# Docker
|
2024-03-03 01:50:52 +01:00
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
2022-11-14 16:16:50 +01:00
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
- name: Prepare
|
|
|
|
run: |
|
2023-05-14 13:52:47 +02:00
|
|
|
pnpm install --frozen-lockfile
|
|
|
|
pnpm exec playwright install --with-deps
|
|
|
|
pnpm run test:prepare
|
2022-11-14 16:16:50 +01:00
|
|
|
|
2022-07-19 14:12:51 +02:00
|
|
|
- name: Run your tests
|
2023-05-14 13:52:47 +02:00
|
|
|
run: pnpm test
|
|
|
|
- uses: actions/upload-artifact@v3
|
2022-07-19 14:12:51 +02:00
|
|
|
with:
|
2022-10-07 21:28:25 +02:00
|
|
|
name: test-results
|
|
|
|
path: test-results
|