Skip to content
Draft
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ on:
- main
- features/*
- release/*
merge_group:
branches:
- main
- features/*
- release/*

permissions:
id-token: write # Required for requesting the JWT
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/devcontainer-feature-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,31 @@ on:
- ".github/workflows/devcontainer-feature-test.yaml"
branches:
- main
merge_group:
workflow_call:

jobs:
changes:
if: github.event_name == 'merge_group'
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
with:
files: |
deploy/devcontainer-feature/**
.github/workflows/devcontainer-feature-test.yaml

test:
needs: changes
if: >-
github.event_name != 'merge_group' ||
needs.changes.outputs.should_run == 'true'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -34,6 +55,10 @@ jobs:
working-directory: ./deploy/devcontainer-feature

test-scenarios:
needs: changes
if: >-
github.event_name != 'merge_group' ||
needs.changes.outputs.should_run == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/functional-test-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ on:
workflows: ["Approve Functional Tests"]
types:
- completed
merge_group:

env:
GOPROXY: https://proxy.golang.org
Expand Down Expand Up @@ -95,7 +96,8 @@ jobs:
if: github.event_name == 'repository_dispatch' ||
(github.event_name == 'schedule' && github.repository == 'radius-project/radius') ||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
github.event_name == 'workflow_dispatch'
github.event_name == 'workflow_dispatch' ||
github.event_name == 'merge_group'
env:
DE_IMAGE: "ghcr.io/radius-project/deployment-engine"
DE_TAG: "latest"
Expand Down Expand Up @@ -163,6 +165,12 @@ jobs:
echo "CHECKOUT_REPO=${{ github.repository }}" >> $GITHUB_ENV
echo "CHECKOUT_REF=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_ENV

- name: Set up checkout target (merge_group)
if: github.event_name == 'merge_group'
run: |
echo "CHECKOUT_REPO=${{ github.repository }}" >> $GITHUB_ENV
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV

- name: Check out code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
Expand Down Expand Up @@ -569,7 +577,8 @@ jobs:
if: github.event_name == 'repository_dispatch' ||
(github.event_name == 'schedule' && github.repository == 'radius-project/radius') ||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
github.event_name == 'workflow_dispatch'
github.event_name == 'workflow_dispatch' ||
github.event_name == 'merge_group'
strategy:
fail-fast: true
matrix:
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/functional-test-noncloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ on:
- main
- features/*
- release/*
merge_group:
branches:
- main
- features/*
- release/*

env:
# Helm version
Expand Down Expand Up @@ -194,12 +199,16 @@ jobs:
echo "CHECKOUT_REPO=${{ github.repository }}" >> $GITHUB_ENV
echo "CHECKOUT_REF=refs/heads/main" >> $GITHUB_ENV

- name: Set up checkout target (pull_request)
if: github.event_name == 'pull_request'
- name: Set up checkout target (pull_request or merge_group)
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
run: |
echo "CHECKOUT_REPO=${{ github.repository }}" >> $GITHUB_ENV
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
if [[ "${EVENT_NAME}" == "pull_request" ]]; then
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
fi
env:
EVENT_NAME: ${{ github.event_name }}

- name: Set up checkout target (workflow_dispatch)
if: github.event_name == 'workflow_dispatch'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
branches:
- main
- release/*
merge_group:
branches:
- main
- release/*

concurrency:
# Cancel the previously triggered build for only PR build.
Expand Down
27 changes: 26 additions & 1 deletion .github/workflows/nightly-rad-CLI-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,36 @@ on:
types: [opened, synchronize, reopened]
paths:
- .github/workflows/nightly-rad-CLI-tests.yaml
merge_group:

jobs:
changes:
runs-on: ubuntu-latest
if: >-
github.repository == 'radius-project/radius' &&
github.event_name == 'merge_group'
outputs:
should_run: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
with:
files: |
.github/workflows/nightly-rad-CLI-tests.yaml

download:
needs: changes
runs-on: ubuntu-latest
if: github.repository == 'radius-project/radius'
if: >-
github.repository == 'radius-project/radius' &&
(
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request' ||
(github.event_name == 'merge_group' && needs.changes.outputs.should_run == 'true')
)
strategy:
matrix:
include:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
pull_request:
branches:
- main
merge_group:
branches:
- main

jobs:
changes:
name: Changes
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/require-pr-checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ name: Require PR Checklist
on:
pull_request:
types: [opened, edited, synchronize]
merge_group:

jobs:
checklist-completed:
if: github.event.pull_request.user.login != 'dependabot[bot]' # Skip for Dependabot PRs
if: |
github.event_name == 'merge_group' ||
github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: mheap/require-checklist-action@46d2ca1a0f90144bd081fd13a80b1dc581759365 # v2.5.0
if: github.event_name != 'merge_group'
with:
requireChecklist: true # If this is true and there are no checklists detected or not filled out, the action will fail
4 changes: 4 additions & 0 deletions .github/workflows/validate-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ on:
branches:
- main
- release/*
merge_group:
branches:
- main
- release/*

permissions:
id-token: write # Required for requesting the JWT
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/validate-installers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
---
name: Validate Radius Installers

on:
pull_request:
paths:
- "deploy/install.ps1"
merge_group:

concurrency:
# Cancel the previously triggered build for only PR build.
Expand All @@ -34,6 +36,17 @@ jobs:
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

- name: Get changed files
id: changed-files
if: github.event_name == 'merge_group'
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
with:
files: |
deploy/install.ps1

- name: Run installer test script
if: >-
github.event_name != 'merge_group' ||
steps.changed-files.outputs.any_changed == 'true'
shell: powershell
run: "deploy/test-pwsh-install.ps1"
run: deploy/test-pwsh-install.ps1