Skip to content

Match findDepPkgJsonPath implementation to Vite (#9) #32

Match findDepPkgJsonPath implementation to Vite (#9)

Match findDepPkgJsonPath implementation to Vite (#9) #32

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
name: Test
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [16]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- node: 18
os: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: '7.14.1'
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Test
run: pnpm test
test-npm:
name: Test npm
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup workspaces
run: cat package.json | jq '.workspaces = ["tests/deps/*","tests/projects/*"]' | tee package.json
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Test
run: npm test
test-yarn:
name: Test yarn PnP
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup workspaces
run: cat package.json | jq '.workspaces = ["tests/deps/*","tests/projects/*"]' | tee package.json
- name: Use yarn 3
run: cat package.json | jq '.packageManager = "[email protected]"' | tee package.json
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: Test
run: yarn test