improve tests and setup test workflow

This commit is contained in:
Rene Haas
2022-08-17 11:18:50 +02:00
parent 4b1e85b1ff
commit e7178b3ce8
9 changed files with 74 additions and 40 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Test
on:
push:
branches:
- master
permissions:
contents: read
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run Jest
run: npm run jest
- uses: codecov/codecov-action@v3
with:
files: ./coverage1.xml,./coverage2.xml
flags: unittests
# - name: Run Playwright
# run: npm run playwright
# - uses: codecov/codecov-action@v3
# with:
# files: ./coverage1.xml,./coverage2.xml
# flags: uitests