ci linting

This commit is contained in:
antelle 2021-06-12 21:18:49 +02:00
parent 7a9a16ce0e
commit 006e841a84
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 11 additions and 14 deletions

View File

@ -25,10 +25,12 @@ jobs:
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: Install npm modules - name: Install npm modules
run: npm ci run: npm ci
- name: Lint
run: npm lint
- name: Test - name: Test
run: npm test run: npm test
- name: Grunt - name: Build
run: grunt run: npm start
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
@ -41,7 +43,7 @@ jobs:
mkdir keys mkdir keys
echo "$VIRUS_TOTAL" > keys/virus-total.json echo "$VIRUS_TOTAL" > keys/virus-total.json
- name: Check on VirusTotal - name: Check on VirusTotal
run: grunt virustotal run: npm start virustotal
if: ${{ github.repository == 'keeweb/keeweb' }} if: ${{ github.repository == 'keeweb/keeweb' }}
linux: linux:
@ -129,8 +131,6 @@ jobs:
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: Install npm modules - name: Install npm modules
run: npm ci run: npm ci
- name: Install grunt
run: sudo npm i -g grunt-cli
- name: Write secrets - name: Write secrets
env: env:
CODESIGN: ${{ secrets.CODESIGN }} CODESIGN: ${{ secrets.CODESIGN }}
@ -147,8 +147,8 @@ jobs:
with: with:
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }} p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Grunt - name: Build
run: grunt --max-old-space-size=4096 desktop-darwin ${{ github.repository != 'keeweb/keeweb' && '--skip-sign' || '' }} run: npm start -- --max-old-space-size=4096 desktop-darwin ${{ github.repository != 'keeweb/keeweb' && '--skip-sign' || '' }}
- name: Upload x64 dmg artifact - name: Upload x64 dmg artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
@ -188,8 +188,6 @@ jobs:
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: Install npm modules - name: Install npm modules
run: npm ci run: npm ci
- name: Install grunt
run: npm i -g grunt-cli
- name: Write secrets - name: Write secrets
env: env:
CODESIGN: ${{ secrets.CODESIGN }} CODESIGN: ${{ secrets.CODESIGN }}
@ -203,8 +201,8 @@ jobs:
echo $Env:MS_CODESIGN_PRIVATE_KEY_CLIENT > keys/code-signing/private-key-client.pem echo $Env:MS_CODESIGN_PRIVATE_KEY_CLIENT > keys/code-signing/private-key-client.pem
echo $Env:MS_CODESIGN_PUBLIC_KEY_CLIENT > keys/code-signing/public-key-client.pem echo $Env:MS_CODESIGN_PUBLIC_KEY_CLIENT > keys/code-signing/public-key-client.pem
echo $Env:MS_CODESIGN_PUBLIC_KEY_SERVER > keys/code-signing/public-key-server.pem echo $Env:MS_CODESIGN_PUBLIC_KEY_SERVER > keys/code-signing/public-key-server.pem
- name: Grunt - name: Build
run: grunt desktop-win32 ${{ github.repository != 'keeweb/keeweb' && '--skip-sign' || '' }} run: npm start -- desktop-win32 ${{ github.repository != 'keeweb/keeweb' && '--skip-sign' || '' }}
- name: Upload ia32 exe artifact - name: Upload ia32 exe artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
@ -353,9 +351,9 @@ jobs:
mkdir keys mkdir keys
echo "$PRIVATE_KEY" > keys/private-key.pem echo "$PRIVATE_KEY" > keys/private-key.pem
echo "$KEEWEB_SIGN" > keys/keeweb-sign.json echo "$KEEWEB_SIGN" > keys/keeweb-sign.json
- name: Grunt - name: Build
working-directory: keeweb working-directory: keeweb
run: grunt finish-release run: npm start finish-release
- name: Copy signatures to assets - name: Copy signatures to assets
run: cp keeweb/dist/desktop/Verify.sign.sha256 assets run: cp keeweb/dist/desktop/Verify.sign.sha256 assets
- name: Copy checksums to assets - name: Copy checksums to assets

View File

@ -3,7 +3,6 @@ module.exports = function (grunt) {
grunt.registerTask('build-web-app', [ grunt.registerTask('build-web-app', [
'clean', 'clean',
'eslint',
'webpack:app', 'webpack:app',
'inline', 'inline',
'htmlmin', 'htmlmin',