add ci automation #1
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: Continous Integration | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
automation-test-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: | ||
${{ matrix.node-version }} | ||
- name: npm install and test | ||
run: | | ||
npm install | ||
npm run ci:test |