mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-25 12:54:06 +03:00
improve tests and setup test workflow
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user