Skip to content

xyz_reduce_precision: forcing 8 digits (#1392) #5913

xyz_reduce_precision: forcing 8 digits (#1392)

xyz_reduce_precision: forcing 8 digits (#1392) #5913

Workflow file for this run

name: Run XYZ Hub tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Add hosts to /etc/hosts
run: |
sudo echo "127.0.0.1 dynamodb postgres.local postgres postgres.replica" | sudo tee -a /etc/hosts
- name: Start the XYZ Hub stack
run: mvn clean install -Pdocker -DskipTests=true -DdockerComposeFile=docker-compose-dynamodb.yml
- name: Deploy StepLambda for Job API
run: ./xyz-jobs/xyz-job-steps/src/main/bash/deployLocalLambda.sh
env:
AWS_ACCESS_KEY_ID: localstack
AWS_SECRET_ACCESS_KEY: localstack
AWS_DEFAULT_REGION: us-east-1
- name: Run Setup of JobService
working-directory: ./xyz-jobs/xyz-job-service/src/main/bash
run: docker run --rm --entrypoint '' -v ./localSetup.sh:/aws/localSetup.sh --add-host host.docker.internal=host-gateway amazon/aws-cli ./localSetup.sh true
- name: Run tests
working-directory: ./
run: mvn verify -DskipTests=false