mirror of
https://github.com/clinicjs/node-clinic.git
synced 2026-01-25 16:43:42 +00:00
43 lines
974 B
YAML
43 lines
974 B
YAML
on: [push, pull_request]
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Node.js 12
|
|
uses: actions/setup-node@v3
|
|
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: [12.x, 14.x, 16.x, 17.x]
|
|
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Node.js ${{matrix.node-version}}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{matrix.node-version}}
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Install global dependencies
|
|
run: npm install autocannon -g
|
|
|
|
- name: Run tests
|
|
run: npm run ci-test-cov
|