2022-11-02 13:26:57 +01:00
|
|
|
name: Test
|
|
|
|
|
2022-07-19 14:12:51 +02:00
|
|
|
on:
|
2022-11-02 13:26:57 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-07-19 14:12:51 +02:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: "16"
|
2022-11-14 16:26:51 +01:00
|
|
|
# - uses: pnpm/action-setup@v2
|
|
|
|
# with:
|
|
|
|
# version: 7
|
2022-11-14 16:16:50 +01:00
|
|
|
|
|
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
- name: Build
|
2022-07-19 14:12:51 +02:00
|
|
|
run: |
|
2022-11-14 16:26:51 +01:00
|
|
|
npm run test:docker
|
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
|
|
|
|
2022-07-19 14:12:51 +02:00
|
|
|
- name: Run your tests
|
2022-11-14 16:26:51 +01:00
|
|
|
run: npm run test:run
|
2022-07-19 14:12:51 +02:00
|
|
|
- name: Upload test results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-10-07 21:28:25 +02:00
|
|
|
name: test-results
|
|
|
|
path: test-results
|
2022-11-14 16:16:50 +01:00
|
|
|
# test:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v2
|
|
|
|
# - uses: actions/setup-node@v2
|
|
|
|
# with:
|
|
|
|
# node-version: "16"
|
|
|
|
# - uses: pnpm/action-setup@v2
|
|
|
|
# with:
|
|
|
|
# version: 7
|
|
|
|
# - name: Prepare
|
|
|
|
# run: |
|
|
|
|
# pnpm install
|
|
|
|
# pnpm run test:docker
|
|
|
|
# - name: Install Playwright
|
|
|
|
# run: npx playwright install --with-deps
|
|
|
|
# - name: Run your tests
|
|
|
|
# run: pnpm run test:run
|
|
|
|
# - name: Upload test results
|
|
|
|
# uses: actions/upload-artifact@v2
|
|
|
|
# with:
|
|
|
|
# name: test-results
|
|
|
|
# path: test-results
|