Skip to content

Return Encodable instead of Response #28

Return Encodable instead of Response

Return Encodable instead of Response #28

Workflow file for this run

name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
macos:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test --enable-code-coverage --sanitize=thread
- name: Generate documentation
uses: sukhrobkhakimov/publish-jazzy-docs@v1
with:
personal_access_token: ${{ secrets.ACCESS_TOKEN }}
args: "--module HTTP --theme fullwidth --root-url https://chaqmoq.dev/http --source-host github --source-host-url https://github.com/chaqmoq/http"
ubuntu:
runs-on: ubuntu-latest
container: swift:5.8-jammy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test --enable-code-coverage --enable-test-discovery --sanitize=thread
- name: Generate coverage report
run: llvm-cov export -format="lcov" .build/debug/chaqmoq-httpPackageTests.xctest -instr-profile=.build/debug/codecov/default.profdata -ignore-filename-regex=".build|Tests" > coverage.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: base64,unittests
file: coverage.lcov