Skip to content

Instantly share code, notes, and snippets.

@boneskull boneskull/nodejs.yml
Created Aug 13, 2019

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

commented Aug 13, 2019

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
You can’t perform that action at this time.