Skip to content

Commit

Permalink
ci: cached dependencies to speed up GitHub workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwelsters committed Jan 25, 2024
1 parent acf749c commit 911e912
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,30 @@ name: Lint files

on:
push:
branches: [main]
# branches: [main]
pull_request:
branches: [main]
# branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: lint files
run: yarn install && yarn lint

- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
name: Install dependencies
run: yarn install

- name: Lint files
run: yarn lint

0 comments on commit 911e912

Please sign in to comment.