-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (34 loc) · 867 Bytes
/
build.yaml
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: build
on:
workflow_dispatch:
pull_request:
branches: ['*', '!latest']
push:
branches: [latest, main]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3.5.3
- name: Cache deps
uses: actions/cache@v3.3.1
with:
path: node_modules
key: node-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install deps
run: npm install
- name: Check format
run: npm run format
- name: Check lint
run: npm run lint
- name: Clean Project
run: npm run clean
- name: Build project
run: npm run build
- name: Test project
run: npm test
- name: Run Project
run: lib/google-rank.js --help
- name: Check diff
run: git diff --exit-code HEAD