feat!: add assert_ne
and revert_with_log
revert signals
#76
Workflow file for this run
This file contains 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: | |
branches: | |
- master | |
pull_request: | |
release: | |
types: [published] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -D warnings -D clippy::dbg_macro | |
jobs: | |
cancel-previous-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
cargo-verifications: | |
needs: cancel-previous-runs | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- command: fmt | |
args: --all --verbose -- --check | |
- command: clippy | |
args: --all-targets --all-features | |
- command: check | |
args: --all-targets | |
- command: check | |
args: --all-targets --all-features | |
- command: test | |
args: --all-targets --all-features | |
- command: test | |
args: --all-targets --no-default-features | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v1 | |
with: | |
# This action doesn't customize the cache key for each matrix run by default | |
# leading to conflicts and overrides between different feature sets | |
key: "${{ matrix.job.command }} ${{ matrix.job.args }}" | |
- name: ${{ matrix.command }} ${{ matrix.args }} | |
uses: actions-rs/cargo@v1 | |
with: | |
command: ${{ matrix.command }} | |
args: ${{ matrix.args }} | |
publish: | |
# Only do this job if publishing a release | |
needs: | |
- cargo-verifications | |
if: github.event_name == 'release' && github.event.action == 'published' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Verify tag version | |
run: | | |
curl -sSLf "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -L -o dasel && chmod +x dasel | |
mv ./dasel /usr/local/bin/dasel | |
./.github/workflows/scripts/verify_tag.sh ${{ github.ref_name }} Cargo.toml | |
- name: Publish crate | |
uses: katyo/publish-crates@v1 | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} |