diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml deleted file mode 100644 index 65dd6a1..0000000 --- a/.github/workflows/format.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Format - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -env: - CARGO_TERM_COLOR: always - -jobs: - format: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Format - run: cargo fmt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..ac81cf2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - run: rustup component add clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features