Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cache npm
  • Loading branch information
Goooler committed Mar 20, 2022
commit 5688afb51cf17225f4d85cf5df5d4ace30927e1e
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Cache Node
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- name: build, test and lint
run: |
npm install
Expand All @@ -65,8 +73,10 @@ jobs:
with:
distribution: 'zulu'
java-version: 15

- name: Gradle cache
uses: gradle/gradle-build-action@v2

- name: AVD cache
uses: actions/cache@v2
id: avd-cache
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jobs:
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Cache Node
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: build, test and lint
run: |
npm install
Expand Down