-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (39 loc) · 1011 Bytes
/
CI.yml
File metadata and controls
43 lines (39 loc) · 1011 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: CI
on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- main
- 'v*'
# always run CI for tags
tags:
- '*'
# early issue detection: run CI weekly on Sundays
# schedule:
# - cron: "0 6 * * 0"
env:
CI: true
jobs:
test:
name: Node.js v${{ matrix.node }} with ${{ matrix.lockfile }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [12, 14, 16]
lockfile:
- --frozen-lockfile
- --no-lockfile
steps:
- name: Checkout Code
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Install Node.js
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint JS
run: yarn lint:js
- name: Tests
run: yarn test