Setup GitHub actions
This commit is contained in:
parent
af89659751
commit
b97f80e4d9
24
.github/workflows/nodejs.yml
vendored
Normal file
24
.github/workflows/nodejs.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Node.js CI
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [10.x, 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
|
||||||
|
env:
|
||||||
|
CI: true
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.zip
|
*.zip
|
||||||
|
node_modules
|
||||||
|
1015
package-lock.json
generated
Normal file
1015
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
30
package.json
Normal file
30
package.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"name": "yomichan",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "Japanese pop-up dictionary extension for Chrome and Firefox.",
|
||||||
|
"directories": {
|
||||||
|
"test": "test"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "npm run test-lint",
|
||||||
|
"test-lint": "eslint ."
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/FooSoft/yomichan.git"
|
||||||
|
},
|
||||||
|
"author": "FooSoft",
|
||||||
|
"licenses": [
|
||||||
|
{
|
||||||
|
"type": "GPLv3",
|
||||||
|
"url": "https://www.gnu.org/licenses/gpl-3.0.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/FooSoft/yomichan/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://foosoft.net/projects/yomichan/",
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^6.8.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user