Skip to content

Instantly share code, notes, and snippets.

@elzup
Created May 1, 2022 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elzup/75b21e71a7758f192d7b833c6cf21ac8 to your computer and use it in GitHub Desktop.
Save elzup/75b21e71a7758f192d7b833c6cf21ac8 to your computer and use it in GitHub Desktop.
GitHub workflow template node.js test
name: Node CI
on:
push:
branches:
- main
paths-ignore:
- '**/readme.md'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: npm install, build, and test
run: |
yarn install
yarn test
env:
CI: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment