-
Notifications
You must be signed in to change notification settings - Fork 137
43 lines (36 loc) · 1008 Bytes
/
test-packages.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
name: Test Packages
on:
pull_request:
paths-ignore:
- '**/*.md'
jobs:
test_packages:
name: "Test packages on Node.js ${{ matrix.node }} ${{ matrix.os }}"
strategy:
matrix:
os: ['ubuntu-latest']
node: ['16', '18', '20']
permissions:
checks: write
pull-requests: write
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Tests
run: npm run test
- name: Code Coverage for FaustWP Core Package
uses: ./.github/actions/run-coverage
with:
working-directory: packages/faustwp-core
- name: Code Coverage for FaustWP CLI Package
uses: ./.github/actions/run-coverage
with:
working-directory: packages/faustwp-cli