Skip to content

Commit

Permalink
chore(ci): add check health
Browse files Browse the repository at this point in the history
  • Loading branch information
kidp2h committed Jul 29, 2024
1 parent 237f8e3 commit adc233d
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,33 @@ jobs:
run: pnpm install
- name: Run build
run: pnpm build
checkhealth:
runs-on: ubuntu-latest
steps:
- name: Copy repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Setup env
run: cp .env.development.local.example .env.development.local && cp .env.development.example
.env.development
- name: Install dependencies
run: pnpm install
- name: Run containers
run: pnpm docker:up --build
- name: Sleep for 10 seconds wait for containers
run: sleep 10s
shell: bash
- name: Check health
run: npx wait-on --timeout 10000 http://localhost/checkhealth
test:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -106,9 +133,9 @@ jobs:
.env.development
- name: Install dependencies
run: pnpm install
- name: Run PostgreSQL container
run: pnpm docker:up
- name: Sleep for 10 seconds wait for container
- name: Run containers
run: pnpm docker:up --build
- name: Sleep for 10 seconds wait for containers
run: sleep 10s
shell: bash
- name: Run tests
Expand Down

0 comments on commit adc233d

Please sign in to comment.