Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AllStackDev1 authored Aug 1, 2024
1 parent 4a624b9 commit 7c7cd23
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,23 @@ on:
branches: [ "main" ]

jobs:
build:

cache-and-install:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
defaults:
run:
working-directory: ./
steps:
- name: Set Repo
run: echo ${{ github.repository }}
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
repository: ${{ github.repository }}
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test

0 comments on commit 7c7cd23

Please sign in to comment.