mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 17:58:05 -05:00
fix(ci): add draft PR handling to CI workflows for compatibility and build tests (#4292)
Signed-off-by: Matheus André <matheusandr2@gmail.com>
This commit is contained in:
1 parent
94fc4c45bb
commit
375d83c0f4
3 files changed
+59
-2
No files matched your search
@@ -2,6 +2,9 @@ name: Compatibility Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
# ready_for_review is not a default type: without it, marking a draft ready
|
||||
# would not start the run the draft skipped.
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'pom.xml'
|
||||
@@ -18,6 +21,7 @@ on:
|
||||
- '.github/ci/compat-opentofu-allowlist-tf-only.txt'
|
||||
- '.github/ci/compat-opentofu-allowlist-otf-only.txt'
|
||||
- '.github/workflows/compatibility.yml'
|
||||
- '.github/workflows/pr-draft-gate.yml'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -27,10 +31,15 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# Drafts skip the suite to spare runners; it runs once the PR is ready for review.
|
||||
draft-gate:
|
||||
uses: ./.github/workflows/pr-draft-gate.yml
|
||||
|
||||
docker-runner-regression:
|
||||
name: compat / Docker runner failure aggregation
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
needs: draft-gate
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
@@ -41,6 +50,7 @@ jobs:
|
||||
name: compat / aws CLI endpoint resolution
|
||||
runs-on: ubuntu-24.04-arm
|
||||
timeout-minutes: 10
|
||||
needs: draft-gate
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
@@ -119,6 +129,7 @@ jobs:
|
||||
name: compat / opentofu resource parity
|
||||
runs-on: ubuntu-24.04-arm
|
||||
timeout-minutes: 5
|
||||
needs: draft-gate
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
@@ -133,6 +144,7 @@ jobs:
|
||||
name: Build native floci image (${{ matrix.arch }})
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 30
|
||||
needs: draft-gate
|
||||
# Both published architectures. The native image is the only place an
|
||||
# arch-specific resource can go missing (snappy-java's JNI library is
|
||||
# registered per platform), and one arch cannot prove the other.
|
||||
|
||||
Reference in new issue
Block a user