Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
applications
renovate
Commits
80d9af90
Unverified
Commit
80d9af90
authored
5 years ago
by
Michael Kriese
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
chore(ci): clear download cache on miss (#5451)
parent
8598a15a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/test.yml
+13
-4
13 additions, 4 deletions
.github/workflows/test.yml
with
13 additions
and
4 deletions
.github/workflows/test.yml
+
13
−
4
View file @
80d9af90
...
@@ -65,16 +65,15 @@ jobs:
...
@@ -65,16 +65,15 @@ jobs:
pip --version
pip --version
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
1
-
name
:
Cache Yarn packages
-
name
:
Cache Yarn packages
id
:
yarn_cache_packages
uses
:
actions/cache@v1
uses
:
actions/cache@v1
with
:
with
:
path
:
${{ steps.init.outputs.yarn_cache }}
path
:
${{ steps.init.outputs.yarn_cache }}
key
:
${{ runner.os }}-yarn_cache-${{ hashFiles('**/yarn.lock') }}
key
:
v1-
${{ runner.os }}-yarn_cache-${{ hashFiles('**/yarn.lock') }}
restore-keys
:
|
restore-keys
:
|
${{ runner.os }}-yarn_cache-
v1-
${{ runner.os }}-yarn_cache-
-
name
:
Cache node_modules
-
name
:
Cache node_modules
uses
:
actions/cache@v1
uses
:
actions/cache@v1
...
@@ -85,6 +84,7 @@ jobs:
...
@@ -85,6 +84,7 @@ jobs:
${{ runner.os }}-${{ matrix.node-version }}-yarn-
${{ runner.os }}-${{ matrix.node-version }}-yarn-
-
name
:
Cache pip packages
-
name
:
Cache pip packages
id
:
pip_cache_packages
uses
:
actions/cache@v1
uses
:
actions/cache@v1
with
:
with
:
path
:
${{ steps.init.outputs.pip_cache }}
path
:
${{ steps.init.outputs.pip_cache }}
...
@@ -92,6 +92,15 @@ jobs:
...
@@ -92,6 +92,15 @@ jobs:
restore-keys
:
|
restore-keys
:
|
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-pip-
# Clear caches on cache miss, otherwise they will grow indefinitely
-
name
:
Clear yarn cache
if
:
steps.yarn_cache_packages.outputs.cache-hit != 'true'
run
:
yarn cache clean
-
name
:
Clear pip cache
if
:
steps.pip_cache_packages.outputs.cache-hit != 'true'
run
:
rm -rf ${{ steps.init.outputs.pip_cache }}
-
name
:
Installing dependencies
-
name
:
Installing dependencies
shell
:
bash
shell
:
bash
run
:
|
run
:
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment