Skip to content

Support multiple subscriber #157

Support multiple subscriber

Support multiple subscriber #157

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- master
- draft-*
jobs:
lint-and-test:
runs-on: ubuntu-latest
container:
image: rust:latest
steps:
- uses: actions/checkout@v4
- name: Install Clippy and Rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Run Clippy
run: cargo clippy -- -D warnings
- name: Check code formatting
run: cargo fmt -- --check
- name: Run Unit Tests
run: cargo test
test-coverage-report:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
pretiier:
runs-on: ubuntu-latest
container:
image: cimg/node:21.6.2
steps:
- uses: actions/checkout@v4
- name: Install Prettier
run: npm install ./js
- name: Check code formatting
run: npx prettier --check "js/**/*.{js,jsx,ts,tsx,json,css,md}"