Skip to content

Commit 4b439d1

Browse files
Fix CI
1 parent eea3155 commit 4b439d1

File tree

3 files changed

+15
-33
lines changed

3 files changed

+15
-33
lines changed

.github/workflows/pull-requests.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,15 @@ jobs:
2626
java-version: 11
2727
distribution: 'adopt'
2828

29-
- name: Get yarn cache directory path
30-
id: yarn-cache-dir-path
31-
run: |
32-
echo "{dir}={$(yarn cache dir)}" >> $GITHUB_OUTPUT
33-
echo "::set-output name=dir::{$(yarn cache dir)}"
34-
cat $GITHUB_OUTPUT
35-
36-
- name: Restore node_modules from cache
37-
uses: actions/cache@v3
38-
id: yarn-cache
29+
- name: Setup Node
30+
uses: actions/setup-node@v4
3931
with:
40-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
41-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42-
restore-keys: |
43-
${{ runner.os }}-yarn-
32+
node-version: '18'
33+
cache: 'yarn'
4434

45-
- name: Install dependencies
46-
run: yarn install --frozen-lockfile --prefer-offline
35+
- name: Install node modules
36+
run: |
37+
yarn install --immutable --immutable-cache --check-cache
4738
4839
- name: Cache Gradle Wrapper
4940
uses: actions/cache@v3

.github/workflows/release.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,15 @@ jobs:
2727
java-version: 11
2828
distribution: 'adopt'
2929

30-
- name: Get yarn cache directory path
31-
id: yarn-cache-dir-path
32-
run: |
33-
echo "{dir}={$(yarn cache dir)}" >> $GITHUB_OUTPUT
34-
echo "::set-output name=dir::{$(yarn cache dir)}"
35-
cat $GITHUB_OUTPUT
36-
37-
- name: Restore node_modules from cache
38-
uses: actions/cache@v3
39-
id: yarn-cache
30+
- name: Setup Node
31+
uses: actions/setup-node@v4
4032
with:
41-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
42-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43-
restore-keys: |
44-
${{ runner.os }}-yarn-
33+
node-version: '18'
34+
cache: 'yarn'
4535

46-
- name: Install dependencies
47-
run: yarn install --frozen-lockfile --prefer-offline
36+
- name: Install node modules
37+
run: |
38+
yarn install --immutable --immutable-cache --check-cache
4839
4940
- name: Cache Gradle Wrapper
5041
uses: actions/cache@v3

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install node modules
2626
run: |
27-
yarn install --frozen-lockfile --check-cache
27+
yarn install --immutable --immutable-cache --check-cache
2828
2929
- name: Run ESLint
3030
run: |

0 commit comments

Comments
 (0)