From 4457a83971d61ac0947664dafb3c77990fc844c9 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 9 May 2020 21:26:17 +0700 Subject: [PATCH] Test with run_install --- .github/workflows/test.yaml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a0777bf..9cc7b28 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -65,3 +65,49 @@ jobs: - name: 'Test: install' run: pnpm install + + test_run_install: + name: 'Test with run_install: ${{ matrix.run_install.name }}' + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + pnpm: + - 4.11.1 + os: + - ubuntu-latest + - macos-latest + - windows-latest + run_install: + - name: 'null' + value: 'null' + - name: 'empty object' + value: '{}' + - name: 'recursive' + value: | + recursive: true + - name: 'global' + value: | + args: [-g, npm, yarn, pnpm] + - name: 'array' + value: | + - {} + - recursive: true + - args: [-g, npm, yarn, pnpm] + + steps: + - uses: actions/checkout@v2 + + - name: Run the action + uses: ./ + with: + version: 4.11.1 + run_install: ${{ matrix.run_install.value }} + + - name: 'Test: which' + run: which pnpm; which pnpx + + - name: 'Test: install' + run: pnpm install