-
-
Notifications
You must be signed in to change notification settings - Fork 15
28 lines (27 loc) · 773 Bytes
/
index.yaml
File metadata and controls
28 lines (27 loc) · 773 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
name: Index
on:
push:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test
- name: module test
run: |
node --input-type=module --eval "import * as m from '@abraham/reflection'; console.log(m)"
node --input-type=commonjs --eval "const m = require('@abraham/reflection'); console.log(m)"
- run: npm run pkg-ok
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}