feedback changes and using node-port directly locally instead of port… #632
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: [push, pull_request] | |
| jobs: | |
| unit: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: 16.x | |
| - name: Mediator unit tests | |
| working-directory: ./mediator | |
| run: | | |
| npm install | |
| npm run unit-test | |
| e2e-tests: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: 16.x | |
| - name: Install configurator | |
| working-directory: ./configurator | |
| run: | | |
| npm install | |
| - name: Mediator e2e tests | |
| working-directory: ./mediator | |
| run: | | |
| npm install | |
| npm run e2e-test |