Skip to content
Closed
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
16 changes: 16 additions & 0 deletions .github/workflows/XcodeGraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,19 @@ jobs:
version: 2024.11.8
- name: Lint
run: mise run lint
schema_generation:
name: Schema Generation Test
strategy:
matrix:
os:
- macos-15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Test Schema Generation
run: |
echo "Testing JSON schema generation..."
swift run XcodeGraphSchemaGenerator
echo "Verifying schemas were generated..."
ls -la schemas/
echo "Schema generation test completed successfully"
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
jobs:
release:
name: Release
runs-on: "ubuntu-latest"
runs-on: "macos-15"
timeout-minutes: 15
if: "!startsWith(github.event.head_commit.message, '[Release]')"
steps:
Expand Down Expand Up @@ -56,6 +56,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git cliff --bump -o CHANGELOG.md
- name: Generate JSON Schemas
if: env.should-release == 'true'
run: |
echo "Generating JSON schemas for XcodeGraph models..."
swift run XcodeGraphSchemaGenerator
echo "JSON schemas generated successfully"
- name: Commit changes
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
Expand All @@ -65,6 +71,7 @@ jobs:
tagging_message: ${{ steps.next-version.outputs.NEXT_VERSION }}
skip_dirty_check: true
commit_message: "[Release] XcodeGraph ${{ steps.next-version.outputs.NEXT_VERSION }}"
file_pattern: "CHANGELOG.md schemas/*.json"
- name: Get release notes
id: release-notes
if: env.should-release == 'true'
Expand Down
2 changes: 1 addition & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ let targets: [Target] = [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.executableTarget(
name: "XcodeGraphSchemaGenerator",
dependencies: [
"XcodeGraph",
.product(name: "Path", package: "Path"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "XcodeMetadata",
dependencies: [
Expand Down
Loading
Loading