mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2026-05-15 05:36:53 -04:00
currently, ci runs twice for people pushing directly to this repository (e.g. https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1340, you can see both woodpecker/{pr,pull}/debug) that's a waste of resources, we'll do twice exactly the same thing. i propose we only run push ci on `main-*` branches, so that creating a PR doesn't create two jobs Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1343 Co-authored-by: trinity-1686a <trinity@deuxfleurs.fr> Co-committed-by: trinity-1686a <trinity@deuxfleurs.fr>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
labels:
|
|
nix: "enabled"
|
|
|
|
when:
|
|
- event:
|
|
- tag
|
|
- pull_request
|
|
- deployment
|
|
- cron
|
|
- manual
|
|
- event: push
|
|
branch: main-*
|
|
|
|
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 ]
|