Skip to content

ci: cached dependencies to speed up GitHub workflows. #47

ci: cached dependencies to speed up GitHub workflows.

ci: cached dependencies to speed up GitHub workflows. #47

Workflow file for this run

name: Lint files
on:
push:
# branches: [main]
pull_request:
# branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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