-
-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (31 loc) · 770 Bytes
/
Copy pathtest.yaml
File metadata and controls
33 lines (31 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 24
cache: 'pnpm'
- name: Install
run: pnpm install --ignore-scripts --prefer-offline
- name: Linting files
run: pnpm lint
- name: Test demo build
run: pnpm run docs
- name: Unit tests
run: pnpm test --coverage
- name: Build coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}