Add cache for lint CI to reduce timeouts (#2240)

This commit is contained in:
Hood Chatham 2022-03-02 07:44:19 -08:00 committed by GitHub
parent e0393b2c6b
commit 5b22f5ed50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,9 @@ jobs:
steps:
- checkout
- restore_cache:
key: pre-commit-{{ checksum ".pre-commit-config.yaml" }}
- run:
name: Install lint requirements
command: |
@ -31,6 +34,11 @@ jobs:
name: lint
command: make lint
- save_cache:
key: pre-commit-{{ checksum ".pre-commit-config.yaml" }}
paths:
- "/root/.cache"
test-docs:
<<: *defaults
resource_class: small