Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macos and windows runners to build workflow #440

Merged
merged 3 commits into from
May 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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