* testing

* try playwrigth

* testing

* add pr support

* not on each commit
This commit is contained in:
2022-07-19 14:12:51 +02:00
committed by GitHub
parent a5d98b76bd
commit 786878a3e4
11 changed files with 153 additions and 17 deletions

36
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,36 @@
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.61
- name: Prepare
run: |
pnpm install
pnpm run ci:prepare
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run your tests
run: pnpm run test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: playwright-report
path: playwright-report