Skip to content

Commit

Permalink
Merge pull request #220 from lifion/upgrade
Browse files Browse the repository at this point in the history
Upgrade
  • Loading branch information
jennyEckstein authored Aug 31, 2021
2 parents bf1be38 + 6923953 commit 874f44e
Show file tree
Hide file tree
Showing 5 changed files with 1,516 additions and 3,371 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [10, 12, 14, 15]
node-version: [12, 14, 16]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Clone repository
Expand All @@ -36,4 +36,3 @@ jobs:
run: npx codecov
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

31 changes: 31 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

export readonly husky_skip_init=1
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

exit $exitCode
fi
Loading

0 comments on commit 874f44e

Please sign in to comment.