Skip to content

feat(eventsub): add more automod related events #304

feat(eventsub): add more automod related events

feat(eventsub): add more automod related events #304

Workflow file for this run

on:
push:
branches:
- main
pull_request:
env:
CI_TWITCH_API_FEATURES: "twitch_oauth2/all all unsupported deny_unknown_fields ureq"
name: Code Coverage
jobs:
coverage:
name: Run test coverage
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Toolchain setup
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage for tests
run: cargo llvm-cov --no-report --tests --features "${{ env.CI_TWITCH_API_FEATURES }} _all trace_unknown_fields"
- name: Generate code coverage for tests without any features
run: cargo llvm-cov --no-report --tests
# doctests take too long to complete
# - name: Generate code coverage for docs
# run: cargo llvm-cov --no-report --doc --features "${{ env.CI_TWITCH_API_FEATURES }} _all"
- name: Merge lcov.info
run: cargo llvm-cov report --lcov --ignore-filename-regex "twitch_oauth2" --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
files: ./lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}