Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
run lint only once
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneJeon committed Oct 26, 2021
1 parent 4d5a01a commit c8cd2f1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [master]

jobs:
build:
install:
runs-on: ubuntu-latest

strategy:
Expand All @@ -25,5 +25,26 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
env:
CACHE_KEY: npm-cache-key-node-v${{ matrix.node-version }}
- run: npm i
lint:
needs: install

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
env:
CACHE_KEY: npm-cache-key-node-v${{ matrix.node-version }}
- run: npm i # by now, dependencies have been cached
- run: npm run lint

0 comments on commit c8cd2f1

Please sign in to comment.