Skip to content

ci: setup pnpm before running tests #401

ci: setup pnpm before running tests

ci: setup pnpm before running tests #401

Workflow file for this run

on:
workflow_call:
inputs:
disable-windows:
description: Disable running tests on Windows
type: boolean
default: false
required: false
inputs:
install-pnpm:
description: Install pnpm before running tests
type: boolean
default: false
required: false
jobs:
test_linux:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.16.0, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
if: ${{ inputs.install-pnpm }}
uses: pnpm/action-setup@v2
with:

Check failure on line 35 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
version: 8.6.3
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
test_windows:
if: ${{ !inputs.disable-windows }}
runs-on: windows-latest
strategy:
matrix:
node-version: [18.16.0, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
if: ${{ inputs.install-pnpm }}
uses: pnpm/action-setup@v2
with:
version: 8.6.3
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test