Rename 'scopes' to 'scope' #793
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" | |
paths: | |
- 'crates/**' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
- '.github/workflows/ci.yaml' | |
pull_request: | |
branches: | |
- "master" | |
paths: | |
- 'crates/**' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
- '.github/workflows/ci.yaml' | |
env: | |
PACKAGE_NAME: huak | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions/setup-python@v1 | |
# We install instead of just build for insta-cmd TODO(cnpryer) | |
- name: Install huak | |
run: cargo install --path crates/huak-cli | |
- name: Test | |
run: cargo test --workspace --all-features | |
clippy-lints: | |
name: Clippy lints | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run lints | |
env: | |
RUSTFLAGS: -C debuginfo=0 | |
run: | | |
cargo clippy --all-features | |
cargo clippy -- -D warnings | |
format: | |
name: Formatting check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run formatting check | |
run: | | |
cargo fmt --all -- --check | |
dry-release: | |
name: Build with maturin | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 |