Merge branch 'advana-release/v1.33' into 'main' #1476
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 | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ dev, main ] | |
jobs: | |
eslint-Frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cd frontend | |
- run: cp frontend/package-lock.json package-lock.json | |
- name: Use Node.js '14' | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
registry-url: https://npm.pkg.github.com | |
scope: '@dod-advana' | |
- run: | | |
cd frontend && npm install && npx eslint --ext .js src | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPMRC_FILE}} | |
eslint-Backend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cd backend | |
- run: cp backend/package-lock.json package-lock.json | |
- name: Use Node.js '14' | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
registry-url: https://npm.pkg.github.com | |
scope: '@dod-advana' | |
- run: | | |
cd backend && npm install && npx eslint --ext .js node_app | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPMRC_FILE}} | |