Skip to content

Commit

Permalink
build: Added npm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-perri committed Oct 7, 2023
1 parent a096cb4 commit 4ee5ba0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/appium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Appium
run: npm install -g appium

Expand Down

0 comments on commit 4ee5ba0

Please sign in to comment.