mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-25 09:46:26 +00:00
40 lines
783 B
YAML
40 lines
783 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
# Node
|
|
- uses: pnpm/action-setup@v2
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: '.nvmrc'
|
|
|
|
# Docker
|
|
- uses: docker/setup-qemu-action@v2
|
|
- uses: docker/setup-buildx-action@v2
|
|
with:
|
|
install: true
|
|
|
|
- name: Prepare
|
|
run: |
|
|
pnpm install --frozen-lockfile
|
|
pnpm exec playwright install --with-deps
|
|
pnpm run test:prepare
|
|
|
|
- name: Run your tests
|
|
run: pnpm test
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: test-results
|
|
path: test-results
|