From 5172d590a76491171a735304b1fbd594a4a6e94a Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Thu, 26 Sep 2024 15:37:10 -0400 Subject: [PATCH] GH Action Signed-off-by: Alex Snaps --- .github/workflows/rust.yaml | 28 ++++++++++++++++++++++++++++ src/lib.rs | 4 +--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/rust.yaml diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..8d9167f --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,28 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + name: Build and verify project + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Formatting + run: cargo fmt --all -- --check + - name: Build + if: ${{ always() }} + run: cargo build --verbose + - name: Clippy + if: ${{ always() }} + run: cargo clippy --all-features --all-targets -- -D warnings + - name: Tests + run: cargo test --all-features --verbose diff --git a/src/lib.rs b/src/lib.rs index 1f123d0..7db765d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,4 @@ // See the License for the specific language governing permissions and // limitations under the License. -pub struct Scheduler { - -} +pub struct Scheduler {}