Skip to content

fix(#136): add ecr login step #496

fix(#136): add ecr login step

fix(#136): add ecr login step #496

Workflow file for this run

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 }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.ECR_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ECR_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- 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