Skip to content

Commit

Permalink
Clean up CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 1, 2022
1 parent 84acdd7 commit ab8ce63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 87 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- dev
- staging
schedule:
- cron: '0 1 * * *'
Expand Down Expand Up @@ -42,23 +43,17 @@ jobs:
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --all
- run: cargo test --workspace

build:
strategy:
matrix:
range:
# This is the minimum supported Rust version of this crate.
# When updating this, the reminder to update the minimum supported
# Rust version in README.md, Cargo.toml, and .clippy.toml.
- 1.31..
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: cargo install cargo-hack --debug
- run: cargo hack build --all --ignore-private --no-dev-deps --version-range ${{ matrix.range }} --version-step 2
- uses: taiki-e/github-actions/install-rust@main
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack build --workspace --ignore-private --no-dev-deps --version-range .. --version-step 2

tidy:
runs-on: ubuntu-latest
Expand All @@ -69,14 +64,16 @@ jobs:
- uses: taiki-e/github-actions/install-rust@main
with:
component: clippy,rustfmt
- run: cargo install cargo-hack --debug
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@cargo-minimal-versions
- uses: taiki-e/install-action@shellcheck
- run: cargo fmt --all -- --check
if: always()
- run: cargo clippy --all --all-features --all-targets
- run: cargo clippy --workspace --all-features --all-targets
if: always()
- run: tools/check-minimal-versions.sh
- run: cargo minimal-versions build --workspace --all-features --ignore-private
if: always()
- run: shellcheck **/*.sh
- run: shellcheck $(git ls-files '*.sh')
if: always()

docs:
Expand All @@ -86,7 +83,7 @@ jobs:
with:
persist-credentials: false
- uses: taiki-e/github-actions/install-rust@main
- run: cargo doc --no-deps --all --all-features
- run: cargo doc --workspace --all-features
env:
RUSTDOCFLAGS: -D warnings

Expand Down
72 changes: 0 additions & 72 deletions tools/check-minimal-versions.sh

This file was deleted.

0 comments on commit ab8ce63

Please sign in to comment.