-
-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (56 loc) · 1.16 KB
/
feature.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
44
45
46
47
48
49
50
51
52
53
54
55
56
jobs:
lint:
environment: release
name: Lint
runs-on: ubuntu-latest
steps:
- name: setup repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '20'
- run: npm ci
- run: npm run lint:cspell
- run: npm run lint:eslint
- run: npm run lint:tsc
timeout-minutes: 10
test:
environment: release
name: Test
needs:
- lint
runs-on: ${{ matrix.os }}
steps:
- name: setup repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm run test:ava
- run: npm run build
strategy:
matrix:
os:
- ubuntu-latest
version:
- 20
timeout-minutes: 10
name: Test and build
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review