action-setup/.github/workflows/test.yaml

64 lines
1.1 KiB
YAML
Raw Normal View History

2020-05-08 14:31:14 +08:00
name: Test Action
on:
- push
- pull_request
jobs:
test_default_inputs:
name: Test with default inputs
2020-05-08 18:01:10 +08:00
runs-on: ${{ matrix.os }}
2020-05-08 14:31:14 +08:00
strategy:
fail-fast: false
matrix:
pnpm:
- 4.11.1
2020-05-08 18:01:10 +08:00
os:
- ubuntu-latest
- macos-latest
- windows-latest
2020-05-08 14:31:14 +08:00
steps:
2020-05-08 14:33:13 +08:00
- uses: actions/checkout@v2
2020-05-08 14:31:14 +08:00
- 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: ubuntu-latest
strategy:
fail-fast: false
matrix:
pnpm:
- 4.11.1
steps:
2020-05-08 14:33:13 +08:00
- uses: actions/checkout@v2
2020-05-08 14:31:14 +08:00
- name: Run the action
uses: ./
with:
version: 4.11.1
2020-05-08 15:27:11 +08:00
dest: ~/test/pnpm
bin_dest: ~/test/pnpm/.bin
2020-05-08 14:31:14 +08:00
registry: http://registry.yarnpkg.com/
- name: 'Test: which'
2020-05-08 15:56:55 +08:00
run: which pnpm && which pnpx
2020-05-08 14:31:14 +08:00
- name: 'Test: install'
run: pnpm install