Skip to content

Commit

Permalink
Merge pull request #183 from burgerdev/rust-ci
Browse files Browse the repository at this point in the history
Run Rust tests with Github Actions
  • Loading branch information
burgerdev authored Jun 23, 2024
2 parents 59400bb + 2c6eeee commit 1eeda9b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/presubmit-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: rust-presubmit
on:
push:
branches: ['master']
pull_request:
paths: ['rust/**', '.github/workflows/presubmit-rust.yml']

defaults:
run:
working-directory: rust

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: fmt
run: cargo fmt --check
- name: check
run: cargo check --all-targets --all-features
- name: clippy
run: cargo clippy --all-targets --all-features

unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: cargo build --all-targets --all-features
- name: test
run: cargo test --all-features

0 comments on commit 1eeda9b

Please sign in to comment.