mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-11-13 15:45:22 +00:00
build: run all test suites and aggregate the exit code
task test no longer stops at the first failing suite. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0970b319a6
commit
9be33e3c26
1 file changed
+7
-4
+7
-4
@@ -24,12 +24,15 @@ tasks:
|
||||
- uv run ruff format --check tests
|
||||
|
||||
test:
|
||||
desc: Build the image and run all suites
|
||||
desc: Build the image and run all suites; every suite runs, any failure fails the task
|
||||
cmds:
|
||||
- task: build
|
||||
- task: test:structure
|
||||
- task: test:compat
|
||||
- task: test:features
|
||||
- cmd: |
|
||||
rc=0
|
||||
{{.TASK_EXE}} test:structure || rc=1
|
||||
{{.TASK_EXE}} test:compat || rc=1
|
||||
{{.TASK_EXE}} test:features || rc=1
|
||||
exit $rc
|
||||
|
||||
test:structure:
|
||||
desc: Run container-structure-test against the image and remove its containers and volumes
|
||||
|
||||
Reference in new issue
Block a user