forked from codelearncreate/c2lc-coding-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.13 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
name: Build
strategy:
matrix:
os: [ubuntu-22.04]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}
env:
CI: true
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Versions
run: |
echo Node:
node --version
echo NPM:
npm --version
- name: NPM audit
continue-on-error: true
run: npm audit
- name: NPM install (ci)
run: npm ci
- name: Lint
run: npm run eslint
- name: Build
run: npm run build
- name: Flow
run: npm run flow check
- name: Test
run: npm test -- --verbose --coverage
- name: Archive Test Code Coverage Report
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: Test Code Coverage Report ${{ matrix.node-version }}
path: coverage/
- name: Lint Documentation
run: npm run markdownlint