add is_unchanged and is_modified methods #176
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: CI | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 | |
- name: Install just and cargo-hack | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: just,cargo-hack | |
- name: Install fork of cargo-sync-rdme | |
# This is a fork of cargo-sync-rdme with a fix for | |
# https://github.com/gifnksm/cargo-sync-rdme/pull/514 included -- remove | |
# once merged upstream. | |
run: | | |
curl -LsSf https://github.com/sunshowers/cargo-sync-rdme/releases/download/v0.4.2-b.1%2Bsunshowers/cargo-sync-rdme-v0.4.2-b.1+sunshowers-x86_64-unknown-linux-gnu.tar.gz \ | |
| tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | |
- name: Lint (clippy) | |
run: just powerset clippy --all-targets | |
- name: Lint (rustfmt) | |
run: cargo xfmt --check | |
- name: Run rustdoc | |
run: just rustdoc | |
- name: Install nightly toolchain for cargo-sync-rdme | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Regenerate readmes | |
run: just generate-readmes | |
- name: Check for differences | |
run: git diff --exit-code | |
build-and-test: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# 1.81 is the MSRV | |
rust-version: ["1.81", stable] | |
fail-fast: false | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust-version }} | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- uses: taiki-e/install-action@just | |
- name: Build | |
run: just powerset build | |
- name: Test | |
run: just powerset test |