-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (39 loc) · 1.08 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 '18'
uses: actions/setup-node@v2
with:
node-version: '18'
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 '18'
uses: actions/setup-node@v2
with:
node-version: '18'
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}}