Skip to content

Commit

Permalink
GH Action
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Sep 26, 2024
1 parent 7965aab commit 5172d59
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub struct Scheduler {

}
pub struct Scheduler {}

0 comments on commit 5172d59

Please sign in to comment.