Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,45 @@ jobs:
- name: Run tests
run: cargo test --locked --workspace --all-targets --all-features

cli-github-actions-smoke:
name: Wright CLI GitHub Actions smoke
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Build wright CLI
run: cargo build --locked -p wright-cli

- name: Exercise auto GitHub Actions renderer
shell: bash
run: |
set -euo pipefail
fixture="$RUNNER_TEMP/wright-gha-smoke.ws"
stdout="$RUNNER_TEMP/wright-gha-smoke.stdout"
stderr="$RUNNER_TEMP/wright-gha-smoke.stderr"
cat > "$fixture" <<'EOF'
rule ("gha smoke") {
event {
Ongoing - Global;
}
actions {
Disable Inspector Recording;
}
}
EOF
target/debug/wright check "$fixture" > "$stdout" 2> "$stderr"
test ! -s "$stdout"
grep -Fq '::group::wright check' "$stderr"
grep -Fq '::endgroup::' "$stderr"
! grep -Fq 'title=Wright summary' "$stderr"
grep -Fq 'Wright `check`: **PASS** (exit 0)' "$GITHUB_STEP_SUMMARY"

lpp-client-integration:
name: LPP client integration (#142, #139)
runs-on: ubuntu-latest
Expand Down
137 changes: 137 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/wright-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ name = "wright"
path = "src/main.rs"

[dependencies]
clap = { version = "4.5", features = ["derive"] }
clap_complete = "4.5"
flate2 = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand Down
Loading
Loading