-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 951 Bytes
/
ci.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
name: is.js CICD
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
name: is.js - nodeJS v${{ matrix.node-version }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup node v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Init - node v${{ matrix.node-version }}
run: yarn --frozen-lockfile
- name: Lint - node v${{ matrix.node-version }}
run: yarn lint
- name: Test - node v${{ matrix.node-version }}
run: yarn test
- name: Package - node v${{ matrix.node-version }}
run: npm pack
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: kj4ezj-is-${{ matrix.node-version }}
path: kj4ezj-is-*.tgz