Set minimum swift version to 5.7 #2242
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- 7.x.x | |
pull_request: | |
branches: | |
- main | |
- 7.x.x | |
release: | |
types: [published] | |
workflow_dispatch: | |
env: | |
ENABLE_TIMING_TESTS: "false" | |
AWS_LOG_LEVEL: "trace" | |
jobs: | |
macos: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: SPM tests | |
run: swift test --enable-code-coverage --parallel | |
- name: Convert coverage files | |
run: | | |
xcrun llvm-cov export -format "lcov" \ | |
.build/debug/soto-corePackageTests.xctest/Contents/MacOs/soto-corePackageTests \ | |
-ignore-filename-regex="\/Tests\/" \ | |
-instr-profile=.build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
file: info.lcov | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: | |
- 'swift:5.7' | |
- 'swift:5.8' | |
- 'swift:5.9' | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test | |
run: | | |
swift --version | |
swift test --enable-code-coverage --parallel | |
- name: Convert coverage files | |
run: | | |
llvm-cov export -format="lcov" \ | |
.build/debug/soto-corePackageTests.xctest \ | |
-ignore-filename-regex="\/Tests\/" \ | |
-instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
file: info.lcov |