Upgrade node to 16 for CI #63
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: CI | |
on: | |
push: | |
branches: [dev,master] | |
pull_request: | |
branches: [dev,master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
mongodb-version: [6.0] | |
steps: | |
- name: Checking Repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
mongodb-port: 27017 | |
- name: Cloning Sugarizer Repository | |
run: git clone https://github.com/llaske/sugarizer.git ../sugarizer | |
- name: Running Clean Install | |
run: npm ci | |
- name: Running Eslint | |
run: npm run lint | |
- name: Unit Testing | |
run: npm run test |