Skip to content

Use @_inheritActorContext #454

Use @_inheritActorContext

Use @_inheritActorContext #454

Workflow file for this run

# https://github.com/actions/virtual-environments
name: test
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
env:
DEVELOPER_DIR: /Applications/Xcode_16.app
jobs:
test:
name: Test
runs-on: macos-14
strategy:
matrix:
xcode_version:
- 15.4
- 16
platform:
- ios
- macos
- tvos
- watchos
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v4
- name: Test library
run: scripts/test.sh library ${{ matrix.platform }}
test_examples:
name: Test examples
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Test example iOS
run: scripts/test.sh example-ios ios
- name: Test example macOS
run: scripts/test.sh example-cross-platform macos
- name: Test example tvOS
run: scripts/test.sh example-cross-platform tvos
upcoming_feature:
name: Upcoming features
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app
steps:
- uses: actions/checkout@v4
- name: Test with upcoming features
run: ENABLE_UPCOMING_FEATURES=1 scripts/test.sh library ios
benchmark:
name: Benchmark
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Run benchmark test
run: scripts/test.sh benchmark ios
validation:
name: Validation
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Show environments
run: |
swift --version
xcodebuild -version
- uses: actions/cache@v4
with:
path: Tools/bin
key: spm-${{ runner.os }}-${{env.DEVELOPER_DIR}}-${{ hashFiles('Tools/Package.swift') }}
- name: Validate lint
run: make lint
- name: Validate format
run: |
make format
if [ -n "$(git status --porcelain)" ]; then git diff && echo "Make sure that the code is formated by 'make format'."; exit 1; fi
- name: Validate example project
run: |
make proj
if [ -n "$(git status --porcelain)" ]; then git diff && echo "Make sure that Xcode projects are formated by 'make proj'."; exit 1; fi