mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-27 15:37:03 +00:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
labels:
|
|
nix: "enabled"
|
|
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
- pull_request
|
|
- deployment
|
|
- cron
|
|
- manual
|
|
|
|
steps:
|
|
- name: check formatting
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.fmt
|
|
|
|
- name: check typos
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-shell --attr ci --run typos
|
|
|
|
- name: check lints with clippy
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.clippy
|
|
|
|
- name: build
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.dev
|
|
|
|
- name: unit + func tests (lmdb)
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.tests-lmdb
|
|
|
|
- name: unit + func tests (sqlite)
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.tests-sqlite
|
|
|
|
- name: unit + func tests (fjall)
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.tests-fjall
|
|
|
|
- name: integration tests
|
|
image: nixpkgs/nix:nixos-24.05
|
|
commands:
|
|
- nix-build -j4 --attr flakePackages.dev
|
|
- nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
|
|
depends_on: [ build ]
|