Skip to content

Instantly share code, notes, and snippets.

@boneskull
Created August 13, 2019 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boneskull/357abeac81636ff900cedba1f589fe13 to your computer and use it in GitHub Desktop.
Save boneskull/357abeac81636ff900cedba1f589fe13 to your computer and use it in GitHub Desktop.
sample node ci/cd config
name: Node CI
on: [push]
jobs:
build:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [8, 10, 12]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}
- name: npm install, build, and test
run: |
npm install
npm test
@boneskull
Copy link
Author

this file goes in .github/workflows/nodejs.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment