mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 08:19:40 +03:00
38 lines
907 B
YAML
38 lines
907 B
YAML
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 --install-links
|
|
- name: Run Jest
|
|
run: npm run jest
|
|
- name: Run Playwright
|
|
run: xvfb-run npm run playwright
|
|
- name: Upload coverage reports
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
flags: overlayscrollbars,unit
|
|
files: "**/overlayscrollbars/**/jest/coverage*.json"
|
|
- name: Upload coverage reports
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
flags: overlayscrollbars,ui
|
|
files: "**/overlayscrollbars/**/playwright/coverage*.json"
|