Test with run_install

This commit is contained in:
khai96_ 2020-05-09 21:26:17 +07:00
parent c8fc1974e1
commit 4457a83971

View File

@ -65,3 +65,49 @@ jobs:
- name: 'Test: install' - name: 'Test: install'
run: pnpm 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