2021-01-30 14:55:22 +01:00
|
|
|
name: 'CI'
|
|
|
|
|
2021-01-30 15:11:27 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '**'
|
2021-01-30 14:55:22 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
2021-01-30 15:52:07 +01:00
|
|
|
fail-fast: false
|
2021-01-30 14:55:22 +01:00
|
|
|
matrix:
|
2021-01-30 16:29:36 +01:00
|
|
|
os: [macos-latest, windows-latest]
|
2021-01-30 17:47:53 +01:00
|
|
|
node: ['15', '14']
|
2021-01-30 14:55:22 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-30 15:19:31 +01:00
|
|
|
- uses: actions/setup-node@v2
|
2021-01-30 14:55:22 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
|
2021-01-30 15:29:41 +01:00
|
|
|
- run: npm ci
|
2021-01-30 14:55:22 +01:00
|
|
|
- run: npm test
|
2021-01-30 15:29:41 +01:00
|
|
|
- run: npm run build
|
2021-01-30 14:55:22 +01:00
|
|
|
|
2021-01-30 17:32:25 +01:00
|
|
|
build:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '15'
|
|
|
|
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build:all
|
|
|
|
|
2021-01-30 14:55:22 +01:00
|
|
|
coverage:
|
2021-01-30 16:20:02 +01:00
|
|
|
runs-on: macos-latest
|
2021-01-30 14:55:22 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-01-30 15:19:31 +01:00
|
|
|
- uses: actions/setup-node@v2
|
2021-01-30 15:29:41 +01:00
|
|
|
- run: npm ci
|
|
|
|
- uses: paambaati/codeclimate-action@v2.7.5
|
2021-01-30 14:55:22 +01:00
|
|
|
env:
|
|
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
|
|
with:
|
|
|
|
coverageCommand: npm test
|