jobs tweaks, run build

This commit is contained in:
Matthias Kretschmann 2021-01-30 15:29:41 +01:00
parent 7228eff74a
commit 3955f61958
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 10 additions and 6 deletions

View File

@ -11,6 +11,7 @@ on:
jobs: jobs:
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
fail-fast: false
strategy: strategy:
matrix: matrix:
@ -23,8 +24,9 @@ jobs:
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
- run: npm i - run: npm ci
- run: npm test - run: npm test
- run: npm run build
coverage: coverage:
needs: [test] needs: [test]
@ -33,8 +35,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
- run: npm i - run: npm ci
- uses: paambaati/codeclimate-action@v2.2.4 - uses: paambaati/codeclimate-action@v2.7.5
env: env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with: with:

View File

@ -12,5 +12,6 @@
"category": "Office", "category": "Office",
"executableName": "Blowfish", "executableName": "Blowfish",
"artifactName": "${productName}-${version}.${ext}" "artifactName": "${productName}-${version}.${ext}"
} },
"publish": false
} }

View File

@ -6,7 +6,8 @@
"main": "app/background.js", "main": "app/background.js",
"scripts": { "scripts": {
"start": "nextron", "start": "nextron",
"build": "nextron build --all", "build": "nextron build",
"build:all": "nextron build --all",
"postinstall": "electron-builder install-app-deps", "postinstall": "electron-builder install-app-deps",
"test": "npm run lint && npm run jest", "test": "npm run lint && npm run jest",
"test:watch": "npm run jest -- --watch", "test:watch": "npm run jest -- --watch",
@ -74,7 +75,7 @@
"hooks": { "hooks": {
"after:init": "npm test", "after:init": "npm test",
"after:bump": "npm run changelog", "after:bump": "npm run changelog",
"before:release": "npm run build" "before:release": "npm run build:all"
}, },
"git": { "git": {
"tagName": "v${version}" "tagName": "v${version}"