Skip to content

Commit

Permalink
⚙️ config(ci): Organize custom GitHub actions in subdirectories.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed May 22, 2024
1 parent 2c21d0d commit ac2b07f
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions .github/workflows/ci:build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ jobs:
sparse-checkout: |
scripts/healthcheck.cjs
scripts/assert-replica-set.js
.github/actions/is-healthy/action.yml
.github/actions/is-reachable/action.yml
.github/actions/docker/container/is-healthy/action.yml
.github/actions/network/is-reachable/action.yml
sparse-checkout-cone-mode: false

- name: Load build 💽
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
"mongo:${MONGO_VERSION}" mongod --dbpath /data/db --replSet meteor
- name: Wait for MongoDB container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: mongodb
timeout: 60
Expand All @@ -188,7 +188,7 @@ jobs:
echo "pid=$!" >> "$GITHUB_OUTPUT"
- name: Wait for server port to be available
uses: ./.github/actions/is-reachable
uses: ./.github/actions/network/is-reachable
with:
timeout: 60
port: 3000
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci:build:compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,29 @@ jobs:
docker compose up --no-build --detach
- id: patient-db-container
uses: ./.github/actions/compose-container
uses: ./.github/actions/docker/compose/container
with:
service: patient-db

- name: Wait for database container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: ${{ steps.patient-db-container.outputs.id }}
timeout: 60

- name: Wait for web port to be available
uses: ./.github/actions/is-reachable
uses: ./.github/actions/network/is-reachable
with:
timeout: 60
port: 3000

- id: patient-web-container
uses: ./.github/actions/compose-container
uses: ./.github/actions/docker/compose/container
with:
service: patient-web

- name: Wait for web container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: ${{ steps.patient-web-container.outputs.id }}
timeout: 60
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci:build:image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ jobs:
with:
sparse-checkout: |
scripts/assert-replica-set.js
.github/actions/ip-address/action.yml
.github/actions/is-healthy/action.yml
.github/actions/is-reachable/action.yml
.github/actions/is-running/action.yml
.github/actions/docker/container/ip-address/action.yml
.github/actions/docker/container/is-healthy/action.yml
.github/actions/docker/container/is-running/action.yml
.github/actions/network/is-reachable/action.yml
sparse-checkout-cone-mode: false

- name: Get server image URL
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
"mongo:${MONGO_VERSION}" mongod --dbpath /data/db --replSet meteor
- name: Wait for MongoDB container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: mongodb
timeout: 60
Expand All @@ -157,18 +157,18 @@ jobs:
- name: Retrieve server container IP address
id: server-container-ip-address
uses: ./.github/actions/ip-address
uses: ./.github/actions/docker/container/ip-address
with:
container: server

- name: Wait for container to be running
uses: ./.github/actions/is-running
uses: ./.github/actions/docker/container/is-running
with:
container: server
timeout: 60

- name: Wait for server container port to be available
uses: ./.github/actions/is-reachable
uses: ./.github/actions/network/is-reachable
with:
timeout: 60
host: ${{ steps.server-container-ip-address.outputs.address }}
Expand All @@ -195,7 +195,7 @@ jobs:
'curl -f http://${{ steps.server-container-ip-address.outputs.address }}:3000/api/healthcheck'
- name: Wait for container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: server
timeout: 60
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci:test:deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,29 @@ jobs:
up --no-build --detach
- id: patient-db-container
uses: ./.github/actions/compose-container
uses: ./.github/actions/docker/compose/container
with:
service: patient-db

- name: Wait for database container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: ${{ steps.patient-db-container.outputs.id }}
timeout: 60

- name: Wait for web port to be available
uses: ./.github/actions/is-reachable
uses: ./.github/actions/network/is-reachable
with:
timeout: 60
port: 3000

- id: patient-web-container
uses: ./.github/actions/compose-container
uses: ./.github/actions/docker/compose/container
with:
service: patient-web

- name: Wait for web container to be healthy
uses: ./.github/actions/is-healthy
uses: ./.github/actions/docker/container/is-healthy
with:
container: ${{ steps.patient-web-container.outputs.id }}
timeout: 60
Expand Down

0 comments on commit ac2b07f

Please sign in to comment.