-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.01 KB
/
sample-tests-ci.yml
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
name: Sample Tests - CI
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/sample-tests-ci.yml'
- '.github/workflows/sample-tests-validate.yml'
- 'sample-tests/**.ps1'
push:
branches-ignore:
- "main" # handled by PR validation for Windows/Linux
paths:
- '.github/workflows/sample-tests-ci.yml'
- '.github/workflows/sample-tests-validate.yml'
- 'sample-tests/**.ps1'
workflow_dispatch:
inputs:
runOnWindows:
description: Enable to also run workflow on latest Windows machine type
required: false
type: boolean
jobs:
ci-linux:
name: Run CI Tests on Ubuntu (Fast)
uses: ./.github/workflows/sample-tests-validate.yml
with:
os: ubuntu-latest
ci-windows:
if: ${{ github.event.pull_request.base.ref == 'main' || inputs.runOnWindows }} # Only run on PRs for Main
name: Run CI Tests on Windows (Slow)
uses: ./.github/workflows/sample-tests-validate.yml
with:
os: windows-latest