Moved linting to it's own step, removed duplicates
This commit is contained in:
parent
81457f6c05
commit
56eeb58ee9
|
@ -81,6 +81,26 @@ jobs:
|
|||
echo "::set-output name=hotfix_branch_exists::0"
|
||||
fi
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
||||
|
||||
- name: Cache npm
|
||||
id: npm-cache
|
||||
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
|
||||
with:
|
||||
path: '~/.npm'
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
- name: Install Node dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
|
||||
linux:
|
||||
name: Linux Build
|
||||
|
@ -130,9 +150,6 @@ jobs:
|
|||
- name: Install Node dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
- name: Build application
|
||||
run: npm run dist:lin
|
||||
|
||||
|
@ -242,9 +259,6 @@ jobs:
|
|||
- name: Install Node dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
- name: Build & Sign (dev)
|
||||
env:
|
||||
ELECTRON_BUILDER_SIGN: 1
|
||||
|
@ -496,9 +510,6 @@ jobs:
|
|||
- name: Install Node dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
- name: Build application (dev)
|
||||
run: npm run build
|
||||
|
||||
|
|
Loading…
Reference in New Issue