Skip to content

Commit

Permalink
with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjun Sanji committed Jul 1, 2024
1 parent 0b73bda commit 45dfaa5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,38 @@ jobs:
node-version: '22'
- name: Install dependencies
run: npm ci
- name: Cache repository
uses: actions/cache@v4
with:
path: .
key: ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }}
build:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- name: Restore repository cache
uses: actions/cache@v4
with:
path: .
key: ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }}
fail-on-cache-miss: true
- name: Compile
run: npm run compile

test:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Restore repository cache
uses: actions/cache@v4
with:
path: .
key: ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }}
fail-on-cache-miss: true
- name: Install system dependencies
run: |
sudo apt-get update
Expand Down

0 comments on commit 45dfaa5

Please sign in to comment.