cryptgeon/.github/workflows/test.yaml

39 lines
759 B
YAML
Raw Normal View History

2022-11-02 12:26:57 +00:00
name: Test
on:
2022-11-02 12:26:57 +00:00
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
2023-05-12 19:17:17 +00:00
- uses: actions/checkout@v3
2023-05-12 18:28:55 +00:00
# Node
2023-04-27 07:36:33 +00:00
- uses: actions/setup-node@v3
with:
2023-04-27 07:36:33 +00:00
node-version-file: '.nvmrc'
2023-05-12 18:28:55 +00:00
- uses: pnpm/action-setup@v2
2022-11-14 15:16:50 +00:00
2023-05-12 18:28:55 +00:00
# Docker
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
- name: Prepare
run: |
2023-05-12 18:28:55 +00:00
pnpm install --frozen-lockfile
pnpm exec playwright install --with-deps
pnpm run test:prepare
2022-11-14 15:16:50 +00:00
- name: Run your tests
2023-05-12 18:28:55 +00:00
run: pnpm test
2023-04-27 07:36:33 +00:00
- uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results