name: PR Validation on: pull_request: types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: jobs: pr-checks: name: PR Build and Unit Tests if: ${{ github.event.pull_request.draft == false || github.event_name == 'workflow_dispatch' }} runs-on: - self-hosted - macos steps: - name: Checkout uses: actions/checkout@v4 - name: Configure private dependencies (optional) if: ${{ secrets.GIT_LOVERDE_TOKEN != '' }} shell: bash run: | git config --global url."https://oauth2:${{ secrets.GIT_LOVERDE_TOKEN }}@git.loverde.com.br/".insteadOf "https://git.loverde.com.br/" - name: Toolchain info shell: bash run: | swift --version xcodebuild -version || true - name: Resolve packages shell: bash run: swift package resolve - name: Build (with tests) shell: bash run: swift build --build-tests - name: Run unit tests shell: bash run: swift test --parallel