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
4 changes: 2 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
- "master"
tags-ignore:
- "**"
pull_request_target:
types: [labeled]
pull_request:
types: [opened, synchronize, reopened]
branches:
- "master"
permissions:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/build-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build Gate
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches: [master]
push:
branches: [master]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
gate:
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'pull_request_target' && 'build-gate' || '' }}
steps:
- run: echo "Approved — releasing frogbot and test suite."

frogbot:
needs: gate
uses: ./.github/workflows/frogbot-scan-pull-request.yml
secrets: inherit

tests:
needs: gate
uses: ./.github/workflows/test.yml
secrets: inherit

# Single, stable required status check. Point branch protection at
# "Build Gate / build-gate-success" instead of the matrix-expanded suite checks.
build-gate-success:
name: build-gate-success
if: always()
needs:
- gate
- frogbot
- tests
runs-on: ubuntu-latest
steps:
- name: Verify no suite failed or was cancelled
run: |
if ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}; then
echo "::error::One or more suites failed or were cancelled."
exit 1
fi
echo "All suites succeeded (skipped suites are allowed)."
5 changes: 1 addition & 4 deletions .github/workflows/frogbot-scan-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
branches:
- master
workflow_call:
permissions:
pull-requests: write
contents: read
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
name: JFrog CLI Core Tests
on:
workflow_call:
workflow_dispatch:
push:
branches:
- master
tags-ignore:
- "**"
pull_request_target:
branches:
- master
types: [labeled]
jobs:
test:
runs-on: ${{ matrix.os }}-latest
Expand Down
Loading