Skip to content

Commit

Permalink
push workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
nkia-christoph committed Mar 6, 2024
1 parent 18909c4 commit 246f5d5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ indent_size = 4
[Makefile]
indent_style = tab

[*.{json,ron,yaml}]
[*.{json,ron,yml}]
max_line_length = 120
indent_size = 2
indent_size = 2
35 changes: 35 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: push

on: [push]

env:
CARGO_TERM_COLOR: always

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
Cargo.lock
Cargo.toml
cli
lib
- uses: dtolnay/rust-toolchain@stable
with:
components:
clippy
rustfmt
toolchain: stable

- name: Run tests
run: cargo test --all-features --verbose

- name: Run checks
run: cargo fmt -- --check

- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings

0 comments on commit 246f5d5

Please sign in to comment.