-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1.03 KB
/
build.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: Build
on: [push, pull_request]
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
node-version: [20.x]
experimental: [false]
include:
- node: 21.x
experimental: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js (NPMJS) ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Build
run: npm run build:ci
env:
FDMG_ARTICLE_SERVICE_TOKEN: ${{secrets.FDMG_ARTICLE_SERVICE_TOKEN}}
FDMG_ARTICLE_SERVICE_URL: ${{secrets.FDMG_ARTICLE_SERVICE_URL}}
- name: Code coverage reporting
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./js-coverage/lcov.info