Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#28: non-zero exit codes for 'list' and 'search' not found: initial commit #29

Merged
merged 14 commits into from
Oct 31, 2022
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