Created
May 1, 2022 12:50
-
-
Save elzup/75b21e71a7758f192d7b833c6cf21ac8 to your computer and use it in GitHub Desktop.
GitHub workflow template node.js test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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