mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-10-31 23:55:17 +01:00
42 lines
803 B
YAML
42 lines
803 B
YAML
name: 'CI'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-20.04]
|
|
node: ['14', '12']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- run: npm ci
|
|
- run: npm test
|
|
- run: npm run build
|
|
|
|
coverage:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
- run: npm ci
|
|
- uses: paambaati/codeclimate-action@v2.7.5
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
with:
|
|
coverageCommand: npm test
|