Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roberts committed Feb 10, 2024
1 parent ad86244 commit a51e209
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/node_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,37 @@ name: Test Node
on: [push]

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [20]
cache-and-install:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: "client"

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
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:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Enter Directory
run: cd client
path: ${{ env.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

0 comments on commit a51e209

Please sign in to comment.