Skip to content

Update runner to macos-13. (#886) #226

Update runner to macos-13. (#886)

Update runner to macos-13. (#886) #226

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
xcode-project-test:
runs-on: macos-13
strategy:
matrix:
flags: [
"-scheme AppAuth-iOS -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' -sdk 'iphonesimulator17.2'",
"-scheme AppAuth-macOS -destination 'platform=macOS,arch=x86_64' -sdk 'macosx14.2'",
"-scheme AppAuth_macOS -destination 'platform=macOS,arch=x86_64' -sdk 'macosx14.2'",
"-scheme AppAuth-tvOS -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.2' -sdk 'appletvsimulator17.2'",
"-scheme AppAuth_tvOS -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.2' -sdk 'appletvsimulator17.2'",
"-scheme AppAuthTV -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.2' -sdk 'appletvsimulator17.2'"
]
steps:
- uses: actions/checkout@v3
- name: Run unit test targets
run: |
xcodebuild test \
-project AppAuth.xcodeproj \
${{ matrix.flags }}
pod-lib-lint:
runs-on: macos-13
strategy:
matrix:
flags: [
'',
'--use-libraries',
'--use-static-frameworks'
]
steps:
- uses: actions/checkout@v3
- name: Update Bundler
run: bundle update --bundler
- name: Install Ruby gems with Bundler
run: bundle install
- name: Lint podspec using local source
run: pod lib lint --verbose ${{ matrix.flags }}
spm-build-test:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Build unit test target
run: swift build
- name: Run unit test target
run: swift test --enable-code-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
version: v0.7.3