Skip to content

Commit

Permalink
ci: add turbo cache (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx authored Jan 20, 2024
1 parent f7450e5 commit 4fb5aeb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]

jobs:
test:
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: node_modules/.cache/turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v2

- uses: actions/setup-node@v4
Expand Down

0 comments on commit 4fb5aeb

Please sign in to comment.