Skip to content

A0-2884: Refactor alerter #1780

A0-2884: Refactor alerter

A0-2884: Refactor alerter #1780

Workflow file for this run

name: CI
on:
push:
pull_request:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
defaults:
run:
shell: bash
jobs:
pr:
name: pull_request
if: "github.event_name == 'pull_request'"
runs-on: ubuntu-20.04
needs: lint
steps:
- name: checkout the source code
uses: actions/checkout@v3
- name: install rustup
uses: ./.github/actions/install-rust-toolchain
- name: check
uses: actions-rs/cargo@v1
with:
command: check
- name: test
uses: actions-rs/cargo@v1
with:
command: test
args: '--lib'
master:
name: push
if: "github.event_name == 'push'"
runs-on: ubuntu-20.04
needs: lint
steps:
- name: checkout the source code
uses: actions/checkout@v3
- name: install rustup
uses: ./.github/actions/install-rust-toolchain
- name: check
uses: actions-rs/cargo@v1
with:
command: check
- name: test
uses: actions-rs/cargo@v1
with:
command: test
args: '--lib'
lint:
name: lint
runs-on: ubuntu-20.04
steps:
- name: checkout the source code
uses: actions/checkout@v3
- name: install rustup
uses: ./.github/actions/install-rust-toolchain
with:
components: rustfmt, clippy
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings