Skip to content

Commit c10502a

Browse files
authored
pull request check (#85)
* add github action to check pull requests Signed-off-by: Sean Trantalis <strantalis@virtru.com> * add basic eslint functionality to run on pull requests Signed-off-by: Sean Trantalis <strantalis@virtru.com>
1 parent 8498b42 commit c10502a

File tree

5 files changed

+1386
-502
lines changed

5 files changed

+1386
-502
lines changed

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"amd": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:react/recommended"
11+
],
12+
"parserOptions": {
13+
"ecmaFeatures": {
14+
"jsx": true
15+
},
16+
"ecmaVersion": "latest",
17+
"sourceType": "module"
18+
},
19+
"plugins": [
20+
"react"
21+
],
22+
"rules": {
23+
"react/prop-types": ["off"]
24+
},
25+
"globals": {
26+
"__PATH_PREFIX__": "readonly"
27+
}
28+
}

.github/workflows/pr-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI Checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
check:
10+
name: Pull Request Lint/Build
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup Node
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '14'
18+
cache: npm
19+
- name: Install Dependencies
20+
run: npm ci
21+
- name: Lint
22+
run: npm run lint
23+
- name: Build
24+
run: npm run build

0 commit comments

Comments
 (0)