Add custom prompt template functionality #22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| test: | |
| name: Test PR | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Cache DerivedData | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/Library/Developer/Xcode/DerivedData | |
| key: ${{ runner.os }}-deriveddata-${{ hashFiles('Recap.xcodeproj/project.pbxproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-deriveddata- | |
| - name: Resolve Package Dependencies | |
| run: | | |
| xcodebuild -resolvePackageDependencies \ | |
| -project Recap.xcodeproj \ | |
| -scheme Recap | |
| - name: Build and Test | |
| run: | | |
| xcodebuild test \ | |
| -project Recap.xcodeproj \ | |
| -scheme Recap \ | |
| -destination 'platform=macOS' \ | |
| -resultBundlePath TestResults.xcresult \ | |
| -only-testing:RecapTests \ | |
| -skipMacroValidation \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Comment PR on Failure | |
| if: failure() && github.event_name == 'pull_request' | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: '❌ Tests failed. Please check the [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).' | |
| }) | |
| - name: Comment PR on Success | |
| if: success() && github.event_name == 'pull_request' | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: '✅ All tests passed!' | |
| }) |