Skip to content

fix: collab origin for observer notifications (#337) #1454

fix: collab origin for observer notifications (#337)

fix: collab origin for observer notifications (#337) #1454

Workflow file for this run

name: Collab
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: "1.75"
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: clippy
- name: Install protobuf
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- name: Linting
run: cargo clippy --all-targets -- -D warnings
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
id: rust_toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.os }}
- name: Install protobuf
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- name: Run tests
run: cargo test