Skip to content

Commit

Permalink
[Github Actions] Change: Use cache@4, setup-node@v4 at all places
Browse files Browse the repository at this point in the history
  • Loading branch information
guhungry committed Feb 22, 2024
1 parent 385dcb1 commit 6c945da
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/test-and-rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup node 20.11
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20.11'

Expand Down Expand Up @@ -87,10 +87,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node 20.11.0
uses: actions/setup-node@v2
- name: Setup node 20.11
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
node-version: '20.11'

- name: Restore cache yarn
uses: actions/cache@v3
Expand All @@ -113,10 +113,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node 20.11.0
uses: actions/setup-node@v2
- name: Setup node 20.11
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
node-version: '20.11'

- name: Setup java
uses: actions/setup-java@v4
Expand All @@ -125,19 +125,19 @@ jobs:
java-version: '19'

- name: Restore cache yarn
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.yarn
key: yarn-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}

- name: Restore cache gradle wrapper
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/wrapper
key: gradle-wrapper-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/gradle-wrapper.properties') }}

- name: Restore cache gradle cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: gradle-cache-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/settings.gradle') }}
Expand Down Expand Up @@ -168,10 +168,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node 20.11.0
uses: actions/setup-node@v2
- name: Setup node 20.11
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
node-version: '20.11'

- name: Restore cache yarn
uses: actions/cache@v3
Expand Down

0 comments on commit 6c945da

Please sign in to comment.