Skip to content

[#113] Enabled Concurrency Checking (#155) #80

[#113] Enabled Concurrency Checking (#155)

[#113] Enabled Concurrency Checking (#155) #80

Workflow file for this run

name: Common Checks
on:
pull_request:
push:
branches:
- "main"
workflow_call:
inputs:
force_all_checks:
type: boolean
required: true
workflow_dispatch:
inputs:
force_all_checks:
description: "Run all available checks (takes more time)"
type: boolean
required: true
env:
XCODE_PATH: "/Applications/Xcode_16.0.app"
jobs:
spm_tests_macos:
name: SPM Tests (Swift ${{ matrix.SWIFT_VERSION }} on macOS)
runs-on: ${{ matrix.OS }}
strategy:
matrix:
SWIFT_VERSION: ["6.0", "5.10", "5.9"]
include:
- SWIFT_VERSION: "6.0"
OS: macos-14
XCODE_APP_NAME: "Xcode_16.0"
- SWIFT_VERSION: "5.10"
OS: macos-14
XCODE_APP_NAME: "Xcode_15.3"
- SWIFT_VERSION: "5.9"
OS: macos-13
XCODE_APP_NAME: "Xcode_15.2"
steps:
- uses: actions/checkout@v4
- name: Select Xcode Version
run: sudo xcode-select -switch "/Applications/${{ matrix.XCODE_APP_NAME }}.app"
- name: Run Tests
run: |
swift --version
swift test -v
spm_tests_linux:
name: SPM Tests (Linux)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run Tests
run: |
swift --version
swift test -v
cocoapods_podspec_lint:
name: CocoaPods Podspec Linting
runs-on: macos-14
if: ${{ inputs.force_all_checks || github.event_name == 'pull_request' }}
needs: [spm_tests_macos, spm_tests_linux]
steps:
- uses: actions/checkout@v4
- name: Select Xcode Version
run: sudo xcode-select -switch ${{ env.XCODE_PATH }}
- name: Lint Podspec
run: pod lib lint --verbose