Skip to content

Commit

Permalink
chore: cache node_modules in ci + lint fast install
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 29, 2020
1 parent 4aaf1e7 commit fee858d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
atom_channel: [stable, beta]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
env:
cache-name: node_modules
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.atom_channel }}-${{ hashFiles('package-lock.json') }}

- uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}
Expand Down Expand Up @@ -51,7 +58,7 @@ jobs:
node-version: "12.x"
- name: Install NPM dependencies
run: |
npm install
npm install --only=dev --ignore-scripts
- name: Lint ✨
run: npm run lint

Expand Down

0 comments on commit fee858d

Please sign in to comment.