-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (58 loc) · 1.76 KB
/
tests.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: tests
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
unit-tests:
runs-on: [ ubuntu-latest ]
strategy:
fail-fast: false
matrix:
node: [ 18, 20, "lts/*" ]
package:
- name: "@kopflos-cms/core"
path: packages/core
- name: "@kopflos-cms/express"
path: packages/express
- name: "@kopflos-cms/plugin-deploy-resources"
path: packages/plugin-deploy-resources
- name: "@kopflos-cms/serve-file"
path: packages/serve-file
- name: "@kopflos-cms/vite"
path: packages/vite
- name: "@kopflos-labs/html-template"
path: labs/html-template
- name: "@kopflos-labs/handlebars"
path: labs/handlebars
- name: sparql-path-parser
path: packages/sparql-path-parser
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npx c8 --all --src ${{ matrix.package.path }} --reporter lcovonly --reporter text npm run -w ${{ matrix.package.path }} test
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.package.name }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm ci
- run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm ci
- run: npm run -ws --if-present build