Skip to content

Commit

Permalink
ci: add integration test to lint_test_build (#2569)
Browse files Browse the repository at this point in the history
* ci: WIP new integration test workflow

no idea what the docker command will do...

* fix: deps not found, add debug step

* ci: add debug step

* ci: use docker compose (v2) instead of docker-compose (v1)

* chore: add setup from seed debug logs

* ci: rework jobs into steps

* chore: rm todo comment

* chore: rm debug log

* chore: shorten timeout in integration test

* refactor: move integreation test job to lint_test_build

* chore: test hostile cmd in ci, no setup host step

* Revert "chore: test hostile cmd in ci, no setup host step"

This reverts commit 5f529b2.
  • Loading branch information
BlairCurrey authored and beniaminmunteanu committed Mar 22, 2024
1 parent f439879 commit 26cdf48
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/lint_test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,27 @@ jobs:
run: |
npx @stoplight/spectral-cli lint ./packages/token-introspection/openapi/specs/token-introspection.yaml
integration-test:
runs-on: ubuntu-22.04
needs: checkout
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup environment
uses: ./.github/workflows/rafiki/env-setup

- name: Setup hosts
run: |
echo "127.0.0.1 host.docker.internal" | sudo tee -a /etc/hosts
- name: Build dependencies
run: pnpm --filter integration build:deps

- name: Run tests
run: pnpm --filter integration run-tests

build:
runs-on: ubuntu-22.04
timeout-minutes: 5
Expand All @@ -126,5 +147,6 @@ jobs:
runs-on: ubuntu-22.04
needs:
- build
- integration-test
steps:
- run: echo 'PR Checks Passed'
3 changes: 2 additions & 1 deletion test/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"version": "1.0.0",
"description": "",
"scripts": {
"testenv:compose": "docker-compose -f ./testenv/cloud-nine-wallet/docker-compose.yml -f ./testenv/happy-life-bank/docker-compose.yml -f ./testenv/docker-compose.yml",
"build:deps": "pnpm --filter mock-account-service-lib build",
"testenv:compose": "docker compose -f ./testenv/cloud-nine-wallet/docker-compose.yml -f ./testenv/happy-life-bank/docker-compose.yml -f ./testenv/docker-compose.yml",
"test": "jest",
"run-tests": "./scripts/run-tests.sh"
},
Expand Down

0 comments on commit 26cdf48

Please sign in to comment.