Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: ["airbnb/base", "prettier"],
parser: "babel-eslint",
extends: ["airbnb/base", "plugin:prettier/recommended"],
parser: "@babel/eslint-parser",
ignorePatterns: ["/dist/**"],
rules: {
"prettier/prettier": "error",
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
jobs:
eslint:
name: Code quality
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- name: Restore node_modules cache
uses: actions/cache@v2
with:
Expand All @@ -31,7 +31,7 @@ jobs:

tests:
name: Unit tests
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- name: Restore node_modules cache
uses: actions/cache@v2
with:
Expand All @@ -58,7 +58,7 @@ jobs:

build:
name: Check build is committed
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- name: Restore node_modules cache
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
coverage/
.eslintcache
.eslintcache
.DS_Store
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn run pre-commit
40 changes: 20 additions & 20 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Code Coverage Report
description: Comments a pull request with the code coverage for mono repo and single repo
author: 'Eesh Tyagi, Marina, John Hannagan'
author: "Eesh Tyagi, Marina, John Hannagan"
branding:
icon: check-square
color: green
icon: check-square
color: green
inputs:
github-token:
description: Github token
required: true
monorepo-base-path:
description: Location of your monorepo `packages` parent folder. If this is specified then we don't need `lcov-file` and `lcov-base` params
required: false
lcov-file:
description: The location of the lcov.info file. Applicable for single repo setup.
required: false
lcov-base:
description: The location of the lcov file for the base branch. Applicable for single repo setup.
required: false
app-name:
description: App name to display on comment
required: false
github-token:
description: Github token
required: true
monorepo-base-path:
description: Location of your monorepo `packages` parent folder. If this is specified then we don't need `lcov-file` and `lcov-base` params
required: false
lcov-file:
description: The location of the lcov.info file. Applicable for single repo setup.
required: false
lcov-base:
description: The location of the lcov file for the base branch. Applicable for single repo setup.
required: false
app-name:
description: App name to display on comment
required: false
runs:
using: node12
main: dist/main.js
using: node12
main: dist/main.js
Loading