Skip to content

Commit

Permalink
Update actions of test
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinBirkhoff committed Jun 18, 2023
1 parent 92d74c2 commit 7ef7911
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,37 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 7

- name: Setup Node.js "16.x"
uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run Tests
run: pnpm test

- name: Uploading reports
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 7ef7911

Please sign in to comment.