Skip to content
Merged
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
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@ permissions:
contents: read
id-token: write

on: [pull_request, workflow_call]
on:
pull_request:
workflow_call:
inputs:
branch:
description: "Branch to checkout"
required: false
default: master
type: string

jobs:
shared-ci:
uses: ./.github/workflows/shared-ci.yml
with:
branch: ${{ inputs.branch || 'master' }}
pr-ci-all-required:
if: always()
needs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/daily_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:
DAILY_CI:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
strategy:
matrix:
branch: [master, v4.x]
uses: ./.github/workflows/ci.yml
with:
branch: ${{ matrix.branch }}
notify:
needs:
[
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Shared CI Tests
on:
workflow_call:
inputs:
branch:
description: "Branch to checkout"
required: false
default: master
type: string
test-published-packages:
description: 'Test against published packages instead of checked out code'
required: false
Expand Down Expand Up @@ -34,6 +39,7 @@ jobs:
# Always need repo for test scripts and configuration, even when testing published packages
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
fetch-depth: 0
submodules: true

Expand Down
Loading