forked from eclipsesource/jsonforms
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.49 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
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
name: Run on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Build
run: |
pnpm i --frozen-lockfile
pnpm run build
pnpm run doc
pnpm run bundle
- name: Lint
if: matrix.os == 'ubuntu-latest'
run: pnpm run lint
- name: Test
if: matrix.os == 'windows-latest' || matrix.os == 'macos-latest'
run: |
set NODE_OPTIONS=--max_old_space_size=4096
pnpm run test
- name: Test & Coverage
if: matrix.os == 'ubuntu-latest'
run: |
export NODE_OPTIONS=--max_old_space_size=4096
pnpm run test-cov
pnpm run check-format
pnpm run merge-report && cat coverage/lcov.info
- name: Upload Coveralls Report
if: success() && matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}