blowfish/.github/workflows/ci.yml

44 lines
840 B
YAML
Raw Normal View History

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 }}
2021-01-30 15:29:41 +01:00
fail-fast: false
2021-01-30 14:55:22 +01:00
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node: ['14', '12']
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
coverage:
needs: [test]
name: coverage
runs-on: ubuntu-latest
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