Skip to content

Commit

Permalink
Add macos and windows runners to build workflow (#440)
Browse files Browse the repository at this point in the history
* Change GH actions workflow to use matrix strategy and use macos and windows runners

* Fix directory path

* Set shell to bash on all runners
  • Loading branch information
robinraju authored May 29, 2022
1 parent 273938d commit db5d0ae
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -29,13 +38,16 @@ 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
shell: bash
run: ls -lrth test-downloads

- name: Test download from a private repo
uses: ./
Expand All @@ -49,4 +61,5 @@ jobs:
out-file-path: "./downloader-test"

- name: List downloaded files from private repo
shell: bash
run: ls -lrth downloader-test

0 comments on commit db5d0ae

Please sign in to comment.