mirror of
https://github.com/jakejarvis/jakejarvis.git
synced 2025-04-26 11:15:22 -04:00
35 lines
657 B
YAML
35 lines
657 B
YAML
name: 'CLI: Tests'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'cli/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'cli/**'
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
node: [16.x, 14.x, 12.x]
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
name: Node ${{ matrix.node }} on ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- run: |
|
|
yarn install --frozen-lockfile
|
|
yarn test
|
|
working-directory: ./cli
|