mirror of
https://github.com/clinicjs/node-clinic.git
synced 2026-01-18 16:22:03 +00:00
39 lines
900 B
YAML
39 lines
900 B
YAML
on: [push, pull_request]
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Node.js 12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12.x
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Check linting
|
|
run: npm run ci-lint
|
|
|
|
test:
|
|
name: Test
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
node-version: [10.12.0, 10.x, 12.x, 13.x, 14.x]
|
|
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Node.js ${{matrix.node-version}}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{matrix.node-version}}
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Run tests
|
|
run: npm run ci-test-cov
|