-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.07 KB
/
package-install-test.yml
File metadata and controls
45 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Install Test
# Test installation of package
on:
workflow_dispatch:
inputs:
os:
description: 'Operating System'
required: true
type: choice
options:
- ubuntu-latest
- windows-latest
- macos-latest
- all
jobs:
assemble:
name: 'Install ${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(
inputs.os == 'all' && '["ubuntu-latest", "windows-latest", "macos-latest"]' ||
format('["{0}"]', inputs.os)
) }}
runs-on: ${{ matrix.os }}
steps:
# macOS
- name: Installation test (macOS)
if: runner.os == 'macOS'
run: brew install combostrap/tap/doc-exec
# Linux
- name: Installation test (Linux)
if: runner.os == 'Linux'
run: brew install combostrap/tap/doc-exec
# Windows
- name: Installation test (Windows)
if: runner.os == 'Windows'
run: choco install doc-exec