From eaa531a5db47296c53c7aa4b1348283d14539ab9 Mon Sep 17 00:00:00 2001 From: Robin Raju Date: Sun, 29 May 2022 19:03:10 +0200 Subject: [PATCH 1/3] Change GH actions workflow to use matrix strategy and use macos and windows runners --- .github/workflows/ci.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68fde477..acd94c1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,23 @@ name: "Build and Test" on: + # Trigger manually + workflow_dispatch: pull_request: push: + tags: + - "*" branches: - main - - 'releases/*' jobs: - build: # make sure build/ci work properly - runs-on: ubuntu-latest + build: + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} steps: @@ -29,13 +38,15 @@ jobs: - name: Run action uses: ./ with: - repository: "eloots/course-management-tools" - tag: "1.0.0" - fileName: "course-management-tools.zip" - out-file-path: "./cmt" + repository: "robinraju/probable-potato" + tag: "1.0.1" + fileName: "potato.jpeg" + tarBall: true + zipBall: true + out-file-path: "./test-downloads" - name: List downloaded files - run: ls -lrth cmt + run: ls -lrth release-test - name: Test download from a private repo uses: ./ From 8daf0afc2283797913aa5f53604e48c42984e356 Mon Sep 17 00:00:00 2001 From: Robin Raju Date: Sun, 29 May 2022 19:09:43 +0200 Subject: [PATCH 2/3] Fix directory path --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acd94c1e..12eea17f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: out-file-path: "./test-downloads" - name: List downloaded files - run: ls -lrth release-test + run: ls -lrth test-downloads - name: Test download from a private repo uses: ./ From ea6d156ba76f3c17a6ccfbf1f434c6bb12ddda12 Mon Sep 17 00:00:00 2001 From: Robin Raju Date: Sun, 29 May 2022 19:28:32 +0200 Subject: [PATCH 3/3] Set shell to bash on all runners --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12eea17f..cbe8dac9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,7 @@ jobs: out-file-path: "./test-downloads" - name: List downloaded files + shell: bash run: ls -lrth test-downloads - name: Test download from a private repo @@ -60,4 +61,5 @@ jobs: out-file-path: "./downloader-test" - name: List downloaded files from private repo + shell: bash run: ls -lrth downloader-test