Skip to content

Commit

Permalink
rust: Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Sep 5, 2021
1 parent 601d3a5 commit cc1c4a0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci-rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI for Rust backend

on:
push:
branches: [main]
paths:
# TODO: Add benchmarker/**/*
- webapp/rust/**/*
- .github/workflows/ci-rust.yaml
pull_request:
paths:
# TODO: Add benchmarker/**/*
- webapp/rust/**/*
- .github/workflows/ci-rust.yaml

jobs:
lint:
name: Lint
runs-on: self-hosted
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path webapp/rust/Cargo.toml -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path webapp/rust/Cargo.toml

# TODO: Run benchmarker with -no-load

0 comments on commit cc1c4a0

Please sign in to comment.