cryptgeon/.github/workflows/test.yaml

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