Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooling] Add github_commit_status to all pipeline jobs #115

Merged
merged 4 commits into from
Sep 11, 2024
Merged
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
45 changes: 42 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,94 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

# For convenience with the many install_swiftpm_dependencies steps, we declare agents and env for macOS in the root, then specialize the fewer remaining steps
agents:
queue: mac
env:
IMAGE_ID: xcode-15.4

steps:
- label: "🕵️ Lint"
- label: ":sleuth_or_spy: Lint"
command: make lint
notify:
- github_commit_status:
context: Lint
agents:
queue: default

- label: "🔬 Test"
- label: ":microscope: Test"
command: make test
notify:
- github_commit_status:
context: Test
agents:
queue: default

- label: "☢️ Danger - PR Check"
- label: ":radioactive_sign: Danger - PR Check"
command: danger
key: danger
if: build.pull_request.id != null
retry:
manual:
permit_on_passed: true
notify:
- github_commit_status:
context: Danger - PR Check
agents:
queue: linter

- group: ":swift: install_swiftpm_dependencies Tests"
steps:
- label: ":swift: Standalone Swift Package - Autodetect"
command: tests/install_swiftpm_dependencies/test_scripts/test_package_automatic.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Standalone Swift Package - Autodetect"

- label: ":swift: Standalone Swift Package - Explicit"
command: tests/install_swiftpm_dependencies/test_scripts/test_package_explicit.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Standalone Swift Package - Explicit"

- label: ":xcode: Xcode Project - Autodetect"
command: tests/install_swiftpm_dependencies/test_scripts/test_project_automatic.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Project - Autodetect"

- label: ":xcode: Xcode Project - Explicit"
command: tests/install_swiftpm_dependencies/test_scripts/test_project_explicit.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Project - Explicit"

- label: ":xcode: Xcode Project - No Package.resolved"
command: tests/install_swiftpm_dependencies/test_scripts/test_project_no_package.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Project - No Package.resolved"

- label: ":xcode: Xcode Workspace - Autodetect"
command: tests/install_swiftpm_dependencies/test_scripts/test_workspace_automatic.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Workspace - Autodetect"

- label: ":xcode: Xcode Workspace - Explicit"
command: tests/install_swiftpm_dependencies/test_scripts/test_workspace_explicit.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Workspace - Explicit"

- label: ":xcode: Xcode Workspace and Project - Autodetect"
command: tests/install_swiftpm_dependencies/test_scripts/test_workspace_and_project_automatic.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Workspace and Project - Autodetect"

- label: ":xcode: Xcode Workspace and Project - Explicit"
command: tests/install_swiftpm_dependencies/test_scripts/test_workspace_and_project_explicit.sh
notify:
- github_commit_status:
context: "install_swiftpm_dependencies Tests: Xcode Workspace and Project - Explicit"