From d7372f52d97ea70129eb8edf10e539944972efe2 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Tue, 18 Jun 2024 17:42:32 -0500 Subject: [PATCH] install this package as a dependency in a clean project --- .github/workflows/CI.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a5f24946..c144abe6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -174,3 +174,37 @@ jobs: pnpm install -g electron@latest xvfb-run --auto-servernum pnpm run test.electron.main continue-on-error: true + smoke-test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + pm: + - npm + - yarn + - pnpm + steps: + - uses: actions/checkout@v4 + with: + path: repo + - uses: actions/setup-node@v4 + - run: npm init -y + + - if: ${{ matrix.pm }} == "npm" + run: | + npm install ${{ github.workspace }}/repo + + - if: ${{ matrix.pm }} == "pnpm" + run: | + npm install -g pnpm + pnpm add ${{ github.workspace }}/repo + + - if: ${{ matrix.pm }} == "yarn" + run: | + npm install -g yarn + yarn set version stable + yarn install + yarn add ${{ github.workspace }}/repo \ No newline at end of file