-
Notifications
You must be signed in to change notification settings - Fork 769
43 lines (40 loc) · 939 Bytes
/
js.yml
File metadata and controls
43 lines (40 loc) · 939 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
38
39
40
41
42
43
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: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Crypto Tests
run: npm run crypto-tests
- 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: CJS test
run: npm run test-cjs
- name: Package test
run: npm run package-test
- name: Ws Live Tests
run: npm run ws-live-tests