Setup GitHub actions

This commit is contained in:
toasted-nutbread 2020-02-08 14:10:53 -05:00
parent af89659751
commit b97f80e4d9
4 changed files with 1070 additions and 0 deletions

24
.github/workflows/nodejs.yml vendored Normal file
View 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
View File

@ -1 +1,2 @@
*.zip *.zip
node_modules

1015
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

30
package.json Normal file
View 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"
}
}