Skip to content

Commit 1980dda

Browse files
committed
chore(husky): upgraded config format to match installed version
1 parent 7e89515 commit 1980dda

File tree

8 files changed

+28
-13
lines changed

8 files changed

+28
-13
lines changed

.github/workflows/node-ci.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Node.js CI
55
- master
66
- alpha
77
- beta
8-
- 'renovate/**'
8+
- renovate/**
99
pull_request:
1010
types:
1111
- opened
@@ -19,32 +19,35 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
node: [10, 12, 14]
22+
node:
23+
- 10
24+
- 12
25+
- 14
2326
steps:
2427
- uses: actions/checkout@v2
2528
- name: Setup node
2629
uses: actions/setup-node@v2
2730
with:
28-
node-version: '${{ matrix.node }}'
31+
node-version: ${{ matrix.node }}
2932
- uses: bahmutov/npm-install@v1
3033
- run: npm test
3134
- name: Upload coverage data to Codecov
32-
run: 'npm run coverage:report'
35+
run: npm run coverage:report
3336
release:
3437
needs: verify
3538
runs-on: ubuntu-latest
3639
steps:
3740
- uses: actions/checkout@v2
3841
- name: Read .nvmrc
39-
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
42+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
4043
id: nvm
4144
- name: Setup node
4245
uses: actions/setup-node@v2
4346
with:
44-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
47+
node-version: ${{ steps.nvm.outputs.NVMRC }}
4548
- uses: bahmutov/npm-install@v1
4649
- name: semantic-release
4750
run: npx semantic-release
4851
env:
49-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
50-
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

.huskyrc.json

-1
This file was deleted.

package-lock.json

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"test:unit": "cross-env NODE_ENV=test nyc run-s test:unit:base",
4545
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
4646
"test:unit:base": "DEBUG=any mocha 'src/**/*-test.js'",
47-
"lint:peer": "npm ls >/dev/null"
47+
"lint:peer": "npm ls >/dev/null",
48+
"prepare": "husky install"
4849
},
4950
"devDependencies": {
5051
"@babel/register": "7.13.16",

test/integration/features/step_definitions/common-steps.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {resolve} from 'path';
2-
import {promises as fs} from 'fs';
32
import {After, Before, When} from '@cucumber/cucumber';
43
import importFresh from 'import-fresh';
54
import clearModule from 'clear-module';

0 commit comments

Comments
 (0)