2024-02-08 15:41:52 +01:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
- pull_request
|
|
|
|
- deployment
|
|
|
|
- cron
|
2024-02-27 10:13:09 +01:00
|
|
|
- manual
|
2024-02-08 15:41:52 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: check formatting
|
|
|
|
image: nixpkgs/nix:nixos-22.05
|
|
|
|
commands:
|
2024-02-09 11:19:32 +01:00
|
|
|
- nix-shell --attr devShell --run "cargo fmt -- --check"
|
2024-02-08 15:41:52 +01:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: nixpkgs/nix:nixos-22.05
|
|
|
|
commands:
|
2025-02-02 20:34:05 +01:00
|
|
|
- nix-build -j4 --attr flakePackages.dev
|
2024-02-08 15:41:52 +01:00
|
|
|
|
|
|
|
- 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
|
2024-02-08 15:41:52 +01:00
|
|
|
- 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
|
2024-02-09 11:19:32 +01:00
|
|
|
- nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
|