From a21a11a5340b7181ff984ba0b5174390e262b1ca Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 8 May 2020 13:31:14 +0700 Subject: [PATCH] Create CI to test --- .github/workflows/test.yaml | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..2633c72 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,59 @@ +name: Test Action + +on: + - push + - pull_request + +jobs: + test_default_inputs: + name: Test with default inputs + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + pnpm: + - 4.11.1 + + steps: + - uses: 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: ubuntu-latest + + strategy: + fail-fast: false + matrix: + pnpm: + - 4.11.1 + + steps: + - uses: 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