mirror of
https://github.com/pnpm/action-setup.git
synced 2024-12-23 16:36:30 +08:00
68 lines
1.2 KiB
YAML
68 lines
1.2 KiB
YAML
name: Test Action
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
test_default_inputs:
|
|
name: Test with default inputs
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
pnpm:
|
|
- 4.11.1
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run the action
|
|
uses: ./
|
|
with:
|
|
version: 4.11.1
|
|
|
|
- name: 'Test: which'
|
|
run: which pnpm; which pnpx
|
|
|
|
- name: 'Test: install'
|
|
run: pnpm install
|
|
|
|
test_explicit_inputs:
|
|
name: Test with explicit inputs
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
pnpm:
|
|
- 4.11.1
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run the action
|
|
uses: ./
|
|
with:
|
|
version: 4.11.1
|
|
dest: ~/test/pnpm
|
|
bin_dest: ~/test/pnpm/.bin
|
|
registry: http://registry.yarnpkg.com/
|
|
|
|
- name: 'Test: which'
|
|
run: which pnpm && which pnpx
|
|
|
|
- name: 'Test: install'
|
|
run: pnpm install
|