Skip to content

Commit f35f924

Browse files
committed
Fixing CI
1 parent a0a4de3 commit f35f924

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ jobs:
2424
runs-on: ubuntu-latest
2525
name: test
2626

27+
services:
28+
localstack:
29+
image: localstack/localstack:s3-latest
30+
ports:
31+
- 4566:4566
32+
env:
33+
SERVICES: s3
34+
# Wait for LocalStack to be up and running
35+
options: >-
36+
--health-cmd "curl -f http://localhost:4566/_localstack/health || exit 1"
37+
--health-interval 10s
38+
--health-timeout 5s
39+
--health-retries 5
40+
41+
env:
42+
AWS_ACCESS_KEY_ID: test
43+
AWS_SECRET_ACCESS_KEY: test
44+
AWS_DEFAULT_REGION: us-east-1
45+
AWS_ENDPOINT_URL: http://localhost:4566
46+
2747
steps:
2848
- uses: actions/checkout@v4
2949

@@ -54,12 +74,6 @@ jobs:
5474
run: mix test --only property --warnings-as-errors
5575
- name: Compile once again but without optional deps
5676
run: mix compile --force --warnings-as-errors --no-optional-deps
57-
58-
- name: Start LocalStack
59-
uses: LocalStack/setup-localstack@v0.2.3
60-
with:
61-
image-tag: "s3-latest"
62-
6377
- name: Run cloud integration tests
6478
run: |
6579
mix localstack.setup

0 commit comments

Comments
 (0)