diff --git a/.github/workflows/build-test.yml b/.github/workflows/ci.yml similarity index 64% rename from .github/workflows/build-test.yml rename to .github/workflows/ci.yml index 15bf197bc..0e3993fa8 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,39 @@ on: pull_request: push: -name: Build and Test +name: Code Quality jobs: + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.43.1 + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + run_clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: 1.43.1 + components: clippy + override: true + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + build_and_test: name: Build and test runs-on: ${{ matrix.os }} diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml deleted file mode 100644 index 84885a5cf..000000000 --- a/.github/workflows/code-quality.yml +++ /dev/null @@ -1,37 +0,0 @@ -on: - pull_request: - push: - -name: Code Quality -jobs: - - fmt: - name: Rustfmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.43.1 - override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - run_clippy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: 1.43.1 - components: clippy - override: true - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features -