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:
|
|
|
|
- uses: actions/checkout@v2
|
2023-04-27 07:36:33 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2022-07-19 12:12:51 +00:00
|
|
|
with:
|
2023-04-27 07:36:33 +00:00
|
|
|
node-version-file: '.nvmrc'
|
2022-11-14 15:16:50 +00:00
|
|
|
|
2023-04-26 16:06:09 +00:00
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
2022-11-14 15:16:50 +00:00
|
|
|
with:
|
|
|
|
install: true
|
2022-11-15 11:17:52 +00:00
|
|
|
- name: Build docker image
|
|
|
|
run: npm run test:prepare
|
2022-11-14 15:16:50 +00:00
|
|
|
|
|
|
|
- name: Prepare
|
|
|
|
run: |
|
2022-11-14 15:26:51 +00:00
|
|
|
npm install playwright
|
2022-11-15 11:13:03 +00:00
|
|
|
npx playwright install --with-deps
|
2022-11-14 15:16:50 +00:00
|
|
|
|
2022-07-19 12:12:51 +00:00
|
|
|
- name: Run your tests
|
2022-11-15 12:15:34 +00:00
|
|
|
run: npm test
|
2023-04-27 07:36:33 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
2022-07-19 12:12:51 +00:00
|
|
|
with:
|
2022-10-07 19:28:25 +00:00
|
|
|
name: test-results
|
|
|
|
path: test-results
|