mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-17 11:07:04 +01:00
36 lines
716 B
YAML
36 lines
716 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
- uses: docker/setup-buildx-action@v2
|
|
with:
|
|
install: true
|
|
- name: Build docker image
|
|
run: npm run test:prepare
|
|
|
|
- name: Prepare
|
|
run: |
|
|
npm install playwright
|
|
npx playwright install --with-deps
|
|
|
|
- name: Run your tests
|
|
run: npm test
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: test-results
|
|
path: test-results
|