You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-14 22:21:02 +03:00
Remove dependencies caching from workflows
After I set up caching in the template workflows, doubts were raised about whether it provided any benefits. I don't know enough about this subject to make a call on that and I have been unable to get any more information on the subject. Since the caching significantly increases the complexity of the workflows, which may make them more difficult to maintain and contribute to, I think it's best to just remove all the caching for now. I hope to eventually be able to revisit this topic and restore caching in any workflows where it is definitely beneficial.
This commit is contained in:
13
.github/workflows/check-toc.yml
vendored
13
.github/workflows/check-toc.yml
vendored
@ -35,19 +35,6 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get week number for use in cache key
|
||||
id: get-date
|
||||
run: |
|
||||
echo "::set-output name=week-number::$(date --utc '+%V')"
|
||||
|
||||
- name: Load dependencies cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-markdown-toc-${{ steps.get-date.outputs.week-number }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-markdown-toc-
|
||||
|
||||
- name: Install markdown-toc
|
||||
run: sudo npm install --global markdown-toc
|
||||
|
||||
|
13
.github/workflows/check-workflows.yml
vendored
13
.github/workflows/check-workflows.yml
vendored
@ -33,19 +33,6 @@ jobs:
|
||||
location: ${{ runner.temp }}/github-workflow-schema
|
||||
file-name: github-workflow.json
|
||||
|
||||
- name: Get week number for use in cache key
|
||||
id: get-date
|
||||
run: |
|
||||
echo "::set-output name=week-number::$(date --utc '+%V')"
|
||||
|
||||
- name: Load dependencies cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-ajv-cli-${{ steps.get-date.outputs.week-number }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-ajv-cli-
|
||||
|
||||
- name: Install JSON schema validator
|
||||
run: sudo npm install --global ajv-cli
|
||||
|
||||
|
Reference in New Issue
Block a user