Skip to content

Commit

Permalink
Run mock server as docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
asein-sinch committed Mar 27, 2024
1 parent b7be843 commit 3691f7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/run_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ on:
branches: [main]

jobs:
start-mock-server:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Set up Node.js
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}

# Start the mock server
- name: Start the mock server
run: |
Expand All @@ -23,20 +28,7 @@ jobs:
git checkout upgrade-to-typescript
yarn install
yarn run compile
AUTH_PORT=8020 NUMBERS_PORT=8021 SMS_PORT=8022 CONVERSATION_PORT=8023 VERIFICATION_PORT=8024 VOICE_PORT=8025 FAX_PORT=8026 node --experimental-specifier-resolution=node dist/index.js
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
needs: start-mock-server
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
docker-compose up -d
# Install dependencies
- run: yarn install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Given('the Fax service is available', function () {
projectId: 'projectId',
keyId: 'keyId',
keySecret: 'keySecret',
authBaseUrl: 'http://localhost:8020',
authBaseUrl: 'http://localhost:6039',
});
faxService.setBasePath('http://localhost:8026');
faxService.setBasePath('http://localhost:6046');
});

When('I send a request to list faxes', async function () {
Expand Down

0 comments on commit 3691f7b

Please sign in to comment.