-
Notifications
You must be signed in to change notification settings - Fork 765
37 lines (34 loc) · 771 Bytes
/
js.yml
File metadata and controls
37 lines (34 loc) · 771 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
34
35
36
37
name: Js
on:
workflow_dispatch:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install npm dependencies
run: npm i --include=dev
- name: Build
run: npm run build
- name: Static Tests (TS ESM)
run: npm run ts-test-static
- name: Static Tests (JS CJS)
run: npm run static-test
- name: Live Tests (TS ESM)
run: npm run ts-test-live
- name: Live Tests
run: npm run test
- name: CJS test
run: npm run test-cjs