Skip to content

Bump trycmd from 1.0.0 to 1.0.1 #764

Bump trycmd from 1.0.0 to 1.0.1

Bump trycmd from 1.0.0 to 1.0.1 #764

Workflow file for this run

name: CI
on:
pull_request:
jobs:
cargo-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: extractions/setup-just@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-go@v6
with:
go-version: stable
cache: false
# unit tests
# - run: cargo test --lib
# integration tests
- run: cargo build --bin kopium
# Test stdout of commands
# - run: just test-trycmd-verify
- run: |
LQ_VERSION="0.15.0"
curl -sSL https://github.com/clux/lq/releases/download/${LQ_VERSION}/lq-x86_64-unknown-linux-musl.tar.xz | tar xJ --strip-components=1 -C /usr/local/bin
# Test different CRDs
- run: just test
examples:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: extractions/setup-just@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
# install cli for examples
- run: cargo install --path .
- run: just examples
rustfmt:
name: Run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run rustfmt
id: rustfmt
run: rustfmt +nightly --edition 2018 --check $(find . -type f -iname *.rs)
clippy:
name: Run clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features