35 lines
969 B
YAML
35 lines
969 B
YAML
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:
|
|
- nix-build -j4 --no-build-output --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:
|
|
- nix-build -j4 --no-build-output --attr flakePackages.tests-lmdb
|
|
- nix-build -j4 --no-build-output --attr flakePackages.tests-sqlite
|
|
- rm result
|
|
|
|
- name: integration tests
|
|
image: nixpkgs/nix:nixos-22.05
|
|
commands:
|
|
- nix-build -j4 --no-build-output --attr flakePackages.dev
|
|
- nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
|