cryptgeon/.github/workflows/test.yaml

41 lines
766 B
YAML
Raw Normal View History

2022-11-02 13:26:57 +01:00
name: Test
on:
2022-11-02 13:26:57 +01:00
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
2024-03-03 01:50:52 +01:00
- uses: actions/checkout@v4
# Node
2024-08-27 00:32:17 +02:00
- uses: pnpm/action-setup@v4
2024-03-03 01:50:52 +01:00
- uses: actions/setup-node@v4
with:
2023-05-25 23:29:05 +02:00
cache: 'pnpm'
node-version-file: '.nvmrc'
2022-11-14 16:16:50 +01: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: |
2024-08-27 00:32:17 +02:00
pnpm install
pnpm exec playwright install --with-deps
pnpm run test:prepare
2022-11-14 16:16:50 +01:00
- name: Run your tests
run: pnpm test
2024-08-27 00:32:17 +02:00
- uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results