Skip to content

Commit

Permalink
Update vitest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M authored Mar 26, 2024
1 parent 689c1ac commit 08c93f3
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,28 @@ on:
branches: [ "main" ]

jobs:
build:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.12.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.12.0] # Latest LTS

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install pnpm
uses: pnpm/[email protected]
- run: pnpm build --if-present
- run: pnpm test
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: ${{ matrix.node-version }}
cache: pnpm

- run: pnpm install

- run: pnpm build

- run: pnpm test

0 comments on commit 08c93f3

Please sign in to comment.