Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
d3cdec74
Commit
d3cdec74
authored
Jun 19, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try another solution for node_modules cache
parent
ec253b23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
30 deletions
+27
-30
checks.yml
.github/workflows/checks.yml
+27
-30
No files found.
.github/workflows/checks.yml
View file @
d3cdec74
...
@@ -42,18 +42,17 @@ jobs:
...
@@ -42,18 +42,17 @@ jobs:
node-version
:
18
node-version
:
18
cache
:
'
yarn'
cache
:
'
yarn'
-
name
:
Get yarn cache directory path
-
name
:
Cache node_modules
id
:
yarn-cache-dir-path
uses
:
actions/cache@v3
run
:
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
id
:
cache-node-modules
-
uses
:
actions/cache@v3
id
:
yarn-cache
with
:
with
:
path
:
${{ steps.yarn-cache-dir-path.outputs.dir }}
path
:
|
key
:
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
node_modules
key
:
node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
yarn --frozen-lockfile --offline
if
:
steps.cache-node-modules.outputs.cache-hit != 'true'
run
:
yarn --frozen-lockfile
-
name
:
Run ESLint
-
name
:
Run ESLint
run
:
yarn lint:eslint
run
:
yarn lint:eslint
...
@@ -75,18 +74,17 @@ jobs:
...
@@ -75,18 +74,17 @@ jobs:
node-version
:
18
node-version
:
18
cache
:
'
yarn'
cache
:
'
yarn'
-
name
:
Get yarn cache directory path
-
name
:
Cache node_modules
id
:
yarn-cache-dir-path
uses
:
actions/cache@v3
run
:
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
id
:
cache-node-modules
-
uses
:
actions/cache@v3
id
:
yarn-cache
with
:
with
:
path
:
${{ steps.yarn-cache-dir-path.outputs.dir }}
path
:
|
key
:
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
node_modules
key
:
node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
yarn --frozen-lockfile --offline
if
:
steps.cache-node-modules.outputs.cache-hit != 'true'
run
:
yarn --frozen-lockfile
-
name
:
Run Jest
-
name
:
Run Jest
run
:
yarn test:jest
run
:
yarn test:jest
...
@@ -118,18 +116,17 @@ jobs:
...
@@ -118,18 +116,17 @@ jobs:
node-version
:
18
node-version
:
18
cache
:
'
yarn'
cache
:
'
yarn'
-
name
:
Get yarn cache directory path
-
name
:
Cache node_modules
id
:
yarn-cache-dir-path
uses
:
actions/cache@v3
run
:
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
id
:
cache-node-modules
-
uses
:
actions/cache@v3
id
:
yarn-cache
with
:
with
:
path
:
${{ steps.yarn-cache-dir-path.outputs.dir }}
path
:
|
key
:
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
node_modules
key
:
node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
yarn --frozen-lockfile --offline
if
:
steps.cache-node-modules.outputs.cache-hit != 'true'
run
:
yarn --frozen-lockfile
-
name
:
Run PlayWright
-
name
:
Run PlayWright
run
:
yarn test:pw:ci
run
:
yarn test:pw:ci
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment