feat(update_backlog): add demote-all subcmd. as a big hammer
#846
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| block-autosquash-commits: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Block merging fixup commits | |
| uses: ErichDonGubler/block-fixup-merge-action@patch-1 | |
| check: | |
| name: Check | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.rust != 'stable' }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| rust: [stable, beta] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v1 | |
| - name: Install toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| override: true | |
| - name: "Run `cargo check`" | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| test: | |
| name: Test Suite | |
| needs: [check] | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.rust != 'stable' }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| rust: [stable, beta] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v1 | |
| - name: Install toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| override: true | |
| - name: "Run `cargo test`" | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| fmt-rust: | |
| name: Format Rust with `cargo fmt` | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: | |
| - stable | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v1 | |
| - name: Install toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| override: true | |
| components: rustfmt | |
| - name: "Run `cargo fmt`" | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| fmt-toml: | |
| name: Format TOML with Taplo | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Taplo | |
| uses: uncenter/setup-taplo@v1 | |
| with: | |
| version: "0.9.3" | |
| - name: Run `taplo fmt` | |
| run: taplo format --check --diff | |
| clippy: | |
| name: Clippy | |
| needs: [check] | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.rust != 'stable' }} | |
| strategy: | |
| matrix: | |
| rust: [stable, beta] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v1 | |
| - name: Install toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| override: true | |
| components: clippy | |
| - name: "Run `cargo clippy`" | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --all-targets --all-features -- -D warnings | |
| rustdoc: | |
| name: Documentation | |
| needs: [check] | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.rust != 'stable' }} | |
| strategy: | |
| matrix: | |
| rust: [stable, beta] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v1 | |
| - name: Install toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| override: true | |
| components: clippy | |
| - name: Run `RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --no-deps` | |
| uses: actions-rs/cargo@v1 | |
| env: | |
| RUSTDOCFLAGS: -Dwarnings | |
| with: | |
| command: doc | |
| args: --all-features --no-deps | |
| cargo-deny: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| log-level: warn | |
| command: check | |
| arguments: --all-features |