Skip to content

Skip e2e and test jobs during release and rerun after (#286) #154

Skip e2e and test jobs during release and rerun after (#286)

Skip e2e and test jobs during release and rerun after (#286) #154

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- .github/workflows/e2e.yaml
pull_request:
branches: [main]
paths-ignore:
- .github/workflows/e2e.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
# Skip tests for release commits (Package.swift references unreleased tag)
if: ${{ !startsWith(github.event.head_commit.message, '[bot] Release') }}
runs-on: macos-26
timeout-minutes: 15
strategy:
matrix:
scheme: [NubrickTests]
destination: ["platform=iOS Simulator,name=iPhone 17,OS=26.1"]
steps:
- name: Install xcbeautify
run: brew install xcbeautify
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Test ${{ matrix.scheme }} on ${{ matrix.destination }}
run: |
xcodebuild test \
-workspace ./Nubrick.xcworkspace \
-scheme ${{ matrix.scheme }} \
-sdk iphonesimulator \
-destination '${{ matrix.destination }}' \
-skipMacroValidation \
-skipPackagePluginValidation \
| xcbeautify
exit ${PIPESTATUS[0]}
env:
COMPILER_INDEX_STORE_ENABLE: NO
SWIFT_COMPILATION_MODE: wholemodule
- name: Pod lint
run: pod spec lint
- name: Verify version consistency
run: |
test $(cat ./Nubrick.podspec | grep -E 's\.version\W+=' | grep -o -e '[0-9]\.[0-9]\.[0-9]') = $(cat ./Sources/Nubrick/sdk.swift | grep -E 'nubrickSdkVersion\W+=' | grep -o -e '[0-9]\.[0-9]\.[0-9]')