Soto 7.x.x #116
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 | |
paths: | |
- '**.swift' | |
pull_request: | |
branches: | |
- main | |
- 5.x.x | |
paths: | |
- '**.swift' | |
- '.github/workflows/ci.yml' | |
workflow_dispatch: | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
jobs: | |
macOS: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test | |
run: swift test --enable-code-coverage | |
- name: Convert coverage files | |
run: | | |
xcrun llvm-cov export -format="lcov" \ | |
.build/debug/soto-cognito-authentication-kitPackageTests.xctest/Contents/MacOs/soto-cognito-authentication-kitPackageTests \ | |
-ignore-filename-regex="(\/\.build\/|\/Tests\/)" \ | |
-instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v1 | |
with: | |
file: info.lcov | |
linux: | |
strategy: | |
matrix: | |
image: | |
- swift:5.7 | |
- swift:5.8 | |
- swift:5.9 | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test | |
run: swift test --enable-code-coverage | |
- name: Convert coverage files | |
run: | | |
llvm-cov export -format="lcov" \ | |
.build/debug/soto-cognito-authentication-kitPackageTests.xctest \ | |
-ignore-filename-regex="(\/\.build\/|\/Tests\/)" \ | |
-instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v1 | |
with: | |
file: info.lcov |