Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Jan 29, 2024
1 parent a4c0dde commit 297b323
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ env:
PULUMI_TEST_OWNER: "moolumi"

jobs:
setup_matrix:
runs-on: ubuntu-latest
outputs:
matrix-platforms: ${{ steps.set-platforms.outputs.platforms }}
steps:
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
- id: set-platforms
run: |
platforms=${{ contains(github.event.pull_request.labels.*.name, 'ci/test') && 'macos-latest windows-latest' || 'ubuntu-latest' }}
echo "platforms=${platforms}" >> $GITHUB_OUTPUT
build:
needs: setup_matrix
strategy:
matrix:
os: >- # No newlines or trailing newline.
${{
contains(github.event.pull_request.labels.*.name, 'ci/test')
&& 'macos-latest windows-latest'
|| 'ubuntu-latest'
}}
os: ${{fromJson(needs.setup_matrix.outputs.matrix-platforms)}}
dotnet-version: [6.0.x, 8.0.x]

runs-on: ubuntu-latest
Expand Down

0 comments on commit 297b323

Please sign in to comment.