Skip to content

Commit

Permalink
Merge pull request #5 from george-cosma/ci-workflow
Browse files Browse the repository at this point in the history
Ci workflow
  • Loading branch information
ppannuto committed Jul 12, 2023
2 parents d44bb86 + 2ba043f commit 99d029f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rust Build & Test

on:
push:
pull_request:
merge_group:

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

ci-format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: ci-job-format
run: make ci-job-format

ci-clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: ci-job-clippy
run: make ci-job-clippy
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ ci-job-clippy:
ci-runner-github: ci-job-format ci-job-clippy
@echo "Running cargo check..."
@cargo check
@echo "Running tests..."
@cargo test

0 comments on commit 99d029f

Please sign in to comment.