1
0
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:
per1234
2021-04-12 02:45:29 -07:00
parent 0c09834a08
commit eafd6bbaf9
2 changed files with 0 additions and 26 deletions

View File

@ -35,19 +35,6 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 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 - name: Install markdown-toc
run: sudo npm install --global markdown-toc run: sudo npm install --global markdown-toc

View File

@ -33,19 +33,6 @@ jobs:
location: ${{ runner.temp }}/github-workflow-schema location: ${{ runner.temp }}/github-workflow-schema
file-name: github-workflow.json 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 - name: Install JSON schema validator
run: sudo npm install --global ajv-cli run: sudo npm install --global ajv-cli