Skip to content

Commit

Permalink
Merge pull request #1 from jhomarolo/develop
Browse files Browse the repository at this point in the history
Add super lint checker on pull request
  • Loading branch information
jhomarolo authored Jul 7, 2020
2 parents 150d3d7 + 74fb311 commit 4640dec
Show file tree
Hide file tree
Showing 13 changed files with 1,685 additions and 316 deletions.
25 changes: 25 additions & 0 deletions .github/linters/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": ["prettier"],
"plugins": ["prettier"],
"env": {
"commonjs": true,
"node": true,
"es6": false
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"semi": ["error", "never"],
"func-names": 0,
"no-param-reassign": 0,
"no-multi-str": 0,
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-console": ["error", { "allow": ["tron"] }],
"consistent-return": 0
}
}
34 changes: 0 additions & 34 deletions .github/workflows/nodejs.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI build

on:
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm i --ignore-scripts
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npx nyc --reporter=lcov npm test && npx codecov
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/[email protected]
- name: Run Super Linter - ESLint
uses: github/[email protected]
env:
VALIDATE_ALL_CODEBASE: true
LINTER_RULES_PATH: .github/linters
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JAVASCRIPT_ES: true
DISABLE_ERRORS: false
28 changes: 28 additions & 0 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI build

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npx nyc --reporter=lcov npm test && npx codecov
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/[email protected]
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,7 @@ public

# DynamoDB Local files
.dynamodb/
.editorconfig
/.eslintrc.json
.prettierrc

Loading

0 comments on commit 4640dec

Please sign in to comment.