Skip to content

Instantly share code, notes, and snippets.

@brygrill
Created May 20, 2020 16:39
Show Gist options
  • Save brygrill/fecef6114074067545ff910b0d815f8c to your computer and use it in GitHub Desktop.
Save brygrill/fecef6114074067545ff910b0d815f8c to your computer and use it in GitHub Desktop.
Github Actions to lint, test, and build app
name: CI
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
strategy:
matrix:
node_version: [14]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
- name: run CI
run: |
npm install # or yarn install
npm run lint # or yarn lint
npm run test # or yarn test
npm run build # or yarn build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment