Skip to content

Add HTTP client transport #11

Add HTTP client transport

Add HTTP client transport #11

Workflow file for this run

name: Unit Test
on:
workflow_call:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-unit-test
cancel-in-progress: true
jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-22.04
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
toolchain: [latest]
steps:
- name: Install Swift
uses: vapor/[email protected]
with:
toolchain: ${{ matrix.toolchain }}
env:
SWIFTLY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/[email protected]
- name: Resolve Swift dependencies
run: swift package resolve
- name: Run Unit Tests
run: swift test --parallel --enable-code-coverage
- name: Merge code coverage
run: |
llvm-cov export -format "lcov" \
.build/debug/swift-ofrepPackageTests.xctest \
-ignore-filename-regex="\/Tests\/" \
-ignore-filename-regex="\/Generated\/" \
-ignore-filename-regex="\/.build\/" \
-instr-profile=./.build/debug/codecov/default.profdata \
> info.lcov
- name: Upload code coverage report to Codecov
uses: codecov/[email protected]
with:
files: ./info.lcov
fail_ci_if_error: true
token: "${{ secrets.CODECOV_TOKEN }}"