From 7d664aec00023e8fba48e660f2f8e184477d8cdd Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 22 Sep 2021 13:57:18 +0100 Subject: [PATCH] test dispatch & basic OS commands (#734) --- .github/workflows/test-deploy.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 0c2189730..05db704f8 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -5,6 +5,7 @@ on: release: types: [published] pull_request_target: + workflow_dispatch: jobs: authorize: environment: @@ -26,11 +27,7 @@ jobs: - run: npm run lint test: needs: authorize - name: test-${{ matrix.system }} - strategy: - matrix: - system: [ubuntu, macos, windows] - runs-on: ${{ matrix.system }}-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: @@ -51,8 +48,28 @@ jobs: TEST_BBCLOUD_TOKEN: ${{ secrets.TEST_BBCLOUD_TOKEN }} TEST_BBCLOUD_REPO: https://bitbucket.org/iterative-ai/cml-qa-tests-dummy TEST_BBCLOUD_SHA: b511535a89f76d3d311b1c15e3e712b15c0b94e3 + test-os: + needs: authorize + name: test-${{ matrix.system }} + strategy: + matrix: + system: [ubuntu, macos, windows] + runs-on: ${{ matrix.system }}-latest + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - if: matrix.system == 'windows' + uses: actions/setup-node@v2 + - run: | + npm i -g + cml --version + cml runner --version + cml publish --version + cml pr --version + cml-pr --version packages: - needs: [lint, test] + needs: [lint, test, test-os] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2