--- /dev/null +++ b/.github/workflows/codestyle.yml @@ -0,0 +1,22 @@ +name: Code style + +on: [push] + +jobs: + rustfmt: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + - uses: icepuma/rust-action@master + with: + args: cargo fmt -- --check + + clippy: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + - uses: icepuma/rust-action@master + with: + args: cargo clippy -- -Dwarnings \ No newline at end of file