Skip to content

Commit 9b6ad76

Browse files
authored
Merge pull request newrelic#674 from newrelic/cayla/add-linting-checks
Linting checks for PRs - eslint and prettier
2 parents 50d56a5 + 692596e commit 9b6ad76

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/validate-pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,29 @@ jobs:
7575

7676
- name: Jest test
7777
run: yarn test --passWithNoTests
78+
79+
lint:
80+
name: Run Eslint
81+
runs-on: ubuntu-latest
82+
steps:
83+
- name: Checkout repository
84+
uses: actions/checkout@v2
85+
86+
- name: Setup Node.js
87+
uses: actions/setup-node@v2
88+
with:
89+
node-version: 12
90+
91+
- name: Cache dependencies
92+
id: yarn-cache
93+
uses: actions/cache@v2
94+
with:
95+
path: '**/node_modules'
96+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
97+
98+
- name: Install dependencies
99+
if: steps.yarn-cache.outputs.cache-hit != 'true'
100+
run: yarn install --frozen-lockfile
101+
102+
- name: Run Eslint
103+
run: yarn lint

0 commit comments

Comments
 (0)