Skip to content

[#156] Switched to Swift 6 (#157) #83

[#156] Switched to Swift 6 (#157)

[#156] Switched to Swift 6 (#157) #83

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"]
include:
- SWIFT_VERSION: "6.0"
OS: macos-14
XCODE_APP_NAME: "Xcode_16.0"
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-24.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