[codex] Pin dependencies and guard copied samples #2
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: Foundation Lab PR | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'BookPlaygrounds/**' | |
| - 'Foundation Lab/**' | |
| - 'FoundationLabCore/**' | |
| - 'FoundationLab.xcodeproj/**' | |
| - 'Package.swift' | |
| - 'Package.resolved' | |
| - 'SampleCode.xcconfig' | |
| - 'Tools/BookPlaygrounds/**' | |
| - '.github/workflows/foundation-lab-pr.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: foundation-lab-pr-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-26 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Build and test FoundationLabCore | |
| run: swift test | |
| - name: Typecheck book playgrounds | |
| run: bash Tools/BookPlaygrounds/typecheck.sh |