Skip to content

Instantly share code, notes, and snippets.

@crrmacarse
Last active January 28, 2020 07:31
Show Gist options
  • Save crrmacarse/44de6538aaa375a917423a3054e14b7e to your computer and use it in GitHub Desktop.
Save crrmacarse/44de6538aaa375a917423a3054e14b7e to your computer and use it in GitHub Desktop.
name: CI
on: [push]
jobs:
test:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [8, 10, 12]
os: [ubuntu-latest, macOS-latest] # windows-latest -- removed due to lF/CRLF eslint
steps:
- uses: actions/checkout@v2.0.0
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org
- name: install
run: npm install
- name: lint
run: npm run lint:prod
- name: build
run: npm run prod
- name: test
run: npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment