Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kinokon committed Mar 16, 2024
1 parent 3512ed6 commit 1355674
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,29 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: yarn cache
uses: c-hive/gha-yarn-cache@v2
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: yarn install --frozen-lockfile
- name: Install dependencies
run: pnpm install

- name: Build
run: yarn build
run: pnpm run build

- run: yarn test
- run: pnpm run test

0 comments on commit 1355674

Please sign in to comment.