-
-
Notifications
You must be signed in to change notification settings - Fork 126
55 lines (42 loc) 路 1.26 KB
/
build.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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
id: cache
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install --prefer-offline
- name: Lint commit message
run: npx commitlint --from=HEAD~1
- name: Lint JavaScript files
run: npm run lint
- name: Lint TypeScript declaration files
run: npm run lint:dts
- name: Run unit tests
run: npm run test:ci
- name: Run ES modules tests
run: npm run test:module
- name: Run integration tests
run: npm run test:integration
- name: Run benchmark
run: npm run benchmark
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}