Skip to content

Commit dbe570e

Browse files
committed
Run all tests first
1 parent bead249 commit dbe570e

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,24 @@ jobs:
2020
experimental: true
2121
services:
2222
minio:
23+
# # https://stackoverflow.com/questions/60849745/how-can-i-run-a-command-in-github-action-service-containers
24+
# image: public.ecr.aws/bitnami/minio:latest
2325
image: minio/minio:latest-cicd
2426
ports:
2527
- 9000:9000 # Expose MinIO's API port (9000)
2628
env:
2729
MINIO_ROOT_USER: admin
2830
MINIO_ROOT_PASSWORD: password
29-
healthcheck:
30-
test:
31-
["CMD", "curl", "--fail", "http://localhost:9000/minio/health/live"]
32-
interval: 10s
33-
timeout: 5s
34-
retries: 5
31+
ports:
32+
- 9000:9000
33+
# https://github.com/orgs/community/discussions/26688
34+
options: >-
35+
--health-cmd "curl -s http://localhost:9000/minio/health/live"
36+
--health-interval=10s
37+
--health-timeout=5s
38+
--health-retries=5
39+
--name minio-server
3540
36-
# minio:
37-
# # https://stackoverflow.com/questions/60849745/how-can-i-run-a-command-in-github-action-service-containers
38-
# image: public.ecr.aws/bitnami/minio:latest
39-
# env:
40-
# MINIO_ROOT_USER: admin
41-
# MINIO_ROOT_PASSWORD: password
42-
# ports:
43-
# - 9000:9000
44-
# # https://github.com/orgs/community/discussions/26688
45-
# options: >-
46-
# --health-cmd "curl -s http://localhost:9000/minio/health/live"
47-
# --health-interval=10s
48-
# --health-timeout=5s
49-
# --health-retries=5
50-
# --name minio-server
5141
name: Crystal ${{ matrix.crystal_version }}
5242
continue-on-error: ${{ matrix.experimental }}
5343
steps:
@@ -64,7 +54,7 @@ jobs:
6454

6555
- name: "[Test] Run specs"
6656
# NOTICE: Set order 1 until fix the problem with https://github.com/crystal-lang/crystal/issues/9065
67-
run: scripts/run_batched_specs
57+
run: crystal spec || scripts/run_batched_specs
6858
env:
6959
LOG_LEVEL: trace
7060
CRYSTAL_WORKERS: 1

0 commit comments

Comments
 (0)