setup-gcloud/.github/workflows/setup-gcloud.yml
Seth Vargo 34d211c669
Only run CI checks that correspond to changed files
This reduces the number of tests we need to run by mapping the tests to
the files changed.
2020-03-17 12:02:12 -04:00

37 lines
731 B
YAML

name: setup-gcloud Unit
on:
push:
paths:
- 'setup-gcloud/**'
pull_request:
paths:
- 'setup-gcloud/**'
jobs:
run:
name: setup-gcloud
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set Node.js 10.x
uses: actions/setup-node@master
with:
node-version: 10.x
- name: npm install
working-directory: ./setup-gcloud
run: npm install
- name: Lint
working-directory: ./setup-gcloud
run: npm run lint
- name: Unit tests
working-directory: ./setup-gcloud
run: npm test