added docker support #11
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: nodejs-ci | |
on: | |
# Trigger when a new commit is pushed in main branch | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout the code | |
- uses: actions/checkout@v2 | |
# setup the nodejs environment | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run test |