Skip to content

Fix warning about cast from Nullable to Nonnull #383

Fix warning about cast from Nullable to Nonnull

Fix warning about cast from Nullable to Nonnull #383

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
jobs:
swiftpm:
runs-on: macos-12
steps:
- uses: maxim-lobanov/setup-xcode@v1.5.1
with:
xcode-version: ^14.1
- uses: actions/checkout@v3
- name: Run SwiftPM Tests
run: swift test --enable-code-coverage --parallel
- uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
xcode:
runs-on: macos-12
strategy:
matrix:
scheme: [ Swift Tests ]
destination:
- platform=macOS
- platform=iOS Simulator,OS=latest,name=iPhone 12 Pro
skip-testing: ['']
include:
- scheme: iOS Tests
destination: 'platform=iOS Simulator,name=iPhone 12 Pro,OS=latest'
skip-testing: 'iOS Tests/DDFileLoggerPerformanceTests'
- scheme: OS X Tests
destination: 'platform=macosx'
skip-testing: 'OS X Tests/DDFileLoggerPerformanceTests'
steps:
- uses: maxim-lobanov/setup-xcode@v1.5.1
with:
xcode-version: ^14.1
- uses: actions/checkout@v3
- uses: sersoft-gmbh/xcodebuild-action@v2
with:
project: Tests/Tests.xcodeproj
scheme: ${{ matrix.scheme }}
destination: ${{ matrix.destination }}
skip-testing: ${{ matrix.skip-testing }}
enable-code-coverage: true
parallel-testing-enabled: true
build-settings: GCC_GENERATE_TEST_COVERAGE_FILES=YES
action: test
- uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}