Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-11-13 00:11:44 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-11-13 00:14:33 +0300
commit504886b35001e15da20775436ed4bf01fbdd110a (patch)
tree453018501efaf8df703d94bbbf360f0da98c3c5a
parent8af4c84ceb5d658f14a14e6d83d9043f9324678a (diff)
Use actions/setup-node action to cache Yarn files
https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
-rw-r--r--.github/workflows/daily-snapshots.yml2
-rw-r--r--.github/workflows/lint-and-analyse-php.yml15
-rw-r--r--.github/workflows/other-tools.yml15
-rw-r--r--.github/workflows/test-selenium.yml15
-rw-r--r--.github/workflows/tests.yml15
5 files changed, 9 insertions, 53 deletions
diff --git a/.github/workflows/daily-snapshots.yml b/.github/workflows/daily-snapshots.yml
index e60db4af0c..7d125f8776 100644
--- a/.github/workflows/daily-snapshots.yml
+++ b/.github/workflows/daily-snapshots.yml
@@ -43,7 +43,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- cache: yarn
+ cache: 'yarn'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
diff --git a/.github/workflows/lint-and-analyse-php.yml b/.github/workflows/lint-and-analyse-php.yml
index 7e9702e0a7..1b292d5f37 100644
--- a/.github/workflows/lint-and-analyse-php.yml
+++ b/.github/workflows/lint-and-analyse-php.yml
@@ -21,19 +21,8 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
- node-version: 14
-
- - name: Get Yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Cache Yarn dependencies
- uses: actions/cache@v3
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
+ node-version: '14'
+ cache: 'yarn'
- name: Install modules
run: yarn install --non-interactive
diff --git a/.github/workflows/other-tools.yml b/.github/workflows/other-tools.yml
index 0f67438c12..3e2725c40b 100644
--- a/.github/workflows/other-tools.yml
+++ b/.github/workflows/other-tools.yml
@@ -56,19 +56,8 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
- node-version: 14
-
- - name: Get Yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Cache Yarn dependencies
- uses: actions/cache@v3
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
+ node-version: '14'
+ cache: 'yarn'
- name: Set up Python
uses: actions/setup-python@v2
diff --git a/.github/workflows/test-selenium.yml b/.github/workflows/test-selenium.yml
index 983288ce74..a306ee2547 100644
--- a/.github/workflows/test-selenium.yml
+++ b/.github/workflows/test-selenium.yml
@@ -109,19 +109,8 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
- node-version: 14
-
- - name: Get Yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Cache Yarn dependencies
- uses: actions/cache@v3
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
+ node-version: '14'
+ cache: 'yarn'
- name: Install modules
run: yarn install --non-interactive --production
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8ad95c26c3..b6b1080915 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -200,19 +200,8 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
- node-version: 14
-
- - name: Get Yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Cache Yarn dependencies
- uses: actions/cache@v3
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
+ node-version: '14'
+ cache: 'yarn'
- name: Install modules
run: yarn install --non-interactive