Skip to content

Commit

Permalink
Don't exit with 0 exit code when no results are found in 'search' or …
Browse files Browse the repository at this point in the history
…'list' (#29) [CI SKIP]
  • Loading branch information
tonky authored and hwittenborn committed Oct 31, 2022
1 parent 9e70736 commit 1216e61
Show file tree
Hide file tree
Showing 13 changed files with 310 additions and 312 deletions.
7 changes: 4 additions & 3 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ local deploy() = {
name: "deploy",
kind: "pipeline",
type: "docker",
volumes: [{name: "docker", host: {path: "/var/run/docker.sock"}}],
trigger: {branch: ["main"]},
steps: [
{
name: "run-tests",
image: "proget.makedeb.org/docker/makedeb/makedeb:ubuntu-jammy",
volumes: [{name: "docker", path: "/var/run/docker.sock"}],
commands: [
"sudo chown 'makedeb:makedeb' ./ -R",
".drone/scripts/setup-pbmpr.sh",
"sudo apt-get install rustup libssl-dev pkg-config libapt-pkg-dev -y",
"cargo fmt --check",
"cargo clippy -- -D warnings"
"sudo apt-get install toast -y",
"sudo toast"
]
},

Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Run unit tests
on: {"pull_request"}
env: {"DEBIAN_FRONTEND": "noninteractive"}
jobs:
build:
run-tests:
runs-on: ubuntu-latest
container:
image: proget.hunterwittenborn.com/docker/makedeb/makedeb-alpha:ubuntu-focal
options: --user root
steps:
- name: Install CI prerequisites
run: sudo -E apt-get install git -y
Expand All @@ -15,11 +12,6 @@ jobs:
uses: actions/checkout@v3

- name: Run unit tests
run: |
sudo chown 'makedeb:makedeb' ./ -R
.drone/scripts/setup-pbmpr.sh
sudo apt-get install rustup libssl-dev pkg-config libapt-pkg-dev -y
cargo fmt --check
cargo clippy -- -D warnings
uses: stepchowfun/toast/.github/actions/toast@main

# vim: expandtab ts=2 sw=2
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Return non-zero exit code when no packages are found for `search` and `list` commands.
- Internal performance improvements.

## [0.10.0] - 2022-10-01
### Changed
Expand Down
Loading

0 comments on commit 1216e61

Please sign in to comment.