Skip to content

Commit

Permalink
setup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jun 20, 2024
1 parent 834ce94 commit a1cd4d7
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.13.1
run_install: false

- uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache pnpm
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Cache turbo tasks
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Install dependencies
run: pnpm install
run: npm install

- name: Run Check
run: pnpm run staged
run: npm run staged

- name: Log success
run: echo "✅ Success!"

0 comments on commit a1cd4d7

Please sign in to comment.