feature/deseng745: Updated project definition to add project type multi-select values. #32
Workflow file for this run
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: Lint and Test API Backend | |
on: | |
pull_request: | |
branches: | |
- dev | |
paths: | |
- "api/controllers/*.js" | |
- "api/helpers/**/*.js" | |
- "api/test/*.js" | |
- "api/test/**/*.js" | |
- "app.js" | |
jobs: | |
static_checks: | |
if: github.repository_owner == 'bcgov' && github.event.pull_request.draft == false | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 10 | |
- name: Install packages | |
run: npm install | |
- name: Run ESLint | |
run: npm run lint | |
- name: Run Tests | |
run: npm run test |