garage/.woodpecker/debug.yaml

36 lines
897 B
YAML
Raw Normal View History

when:
event:
- push
- tag
- pull_request
- deployment
- cron
- manual
steps:
- name: check formatting
image: nixpkgs/nix:nixos-22.05
commands:
- nix-shell --attr devShell --run "cargo fmt -- --check"
- name: build
image: nixpkgs/nix:nixos-22.05
commands:
2025-02-02 20:34:05 +01:00
- nix-build -j4 --attr flakePackages.dev
- name: unit + func tests
image: nixpkgs/nix:nixos-22.05
environment:
GARAGE_TEST_INTEGRATION_EXE: result-bin/bin/garage
GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
commands:
2025-02-02 20:34:05 +01:00
- nix-build -j4 --attr flakePackages.tests-lmdb
- nix-build -j4 --attr flakePackages.tests-sqlite
- rm result
- name: integration tests
image: nixpkgs/nix:nixos-22.05
commands:
2025-02-02 20:34:05 +01:00
- nix-build -j4 --attr flakePackages.dev
- nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)