diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml new file mode 100644 index 0000000..f0d9ec2 --- /dev/null +++ b/.github/workflows/continuous-integration-workflow.yml @@ -0,0 +1,37 @@ +name: Main workflow + +# Trigger the workflow on push or pull request +on: [push, pull_request] + +jobs: + + build-and-test: + + name: Build and Test + + runs-on: ubuntu-latest + + strategy: + matrix: + node: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - name: npm install + run: npm install + + - name: Lint + run: npm run lint + + - name: npm test + run: npm run test + +#services: +# redis: +# image: redis +# ports: +# - 6379/tcp \ No newline at end of file diff --git a/package.json b/package.json index 945cd68..15047e9 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ }, "devDependencies": { "mocha": "*", + "eslint": "*", "nodemon": "*", "open": "*", "supertest": "*"