ci: upgrade freebsd image

This commit is contained in:
LongYinan 2021-02-22 15:39:50 +08:00
parent 498c5af4ec
commit ea4cefac48
4 changed files with 11 additions and 4 deletions

View file

@ -1,8 +1,8 @@
freebsd_instance:
image: freebsd-12-1-release-amd64
image: freebsd-12-2-release-amd64
task:
name: FreeBSD 12.1
name: FreeBSD 12.2
env:
DEBUG: 'napi:*'
setup_script:

1
.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged && cargo fmt --all

View file

@ -24,8 +24,10 @@
"format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
"lint": "eslint -c .eslintrc.yml './cli/**/*.ts' './test_module/**/*.{ts,js}'",
"prepublishOnly": "npm run build",
"test": "ava"
"prepublishOnly": "npm run build && pinst --disable",
"test": "ava",
"postinstall": "husky install",
"postpublish": "pinst --enable"
},
"bugs": {
"url": "https://github.com/napi-rs/napi-rs/issues"