From b8ca5d657266791957eec8ab767982c2d6c7e85c Mon Sep 17 00:00:00 2001 From: Phred Date: Mon, 26 Oct 2020 13:17:14 -0500 Subject: [PATCH] fixed yamllint errors all whitespace changes --- .github/workflows/mongodb-service.yml | 44 +++++++++++------------ .github/workflows/postgres-service.yml | 50 +++++++++++++------------- .github/workflows/redis-service.yml | 42 +++++++++++----------- 3 files changed, 68 insertions(+), 68 deletions(-) diff --git a/.github/workflows/mongodb-service.yml b/.github/workflows/mongodb-service.yml index 3142e41..c3a8dc7 100644 --- a/.github/workflows/mongodb-service.yml +++ b/.github/workflows/mongodb-service.yml @@ -3,10 +3,10 @@ name: Mongodb Service Example on: push: branches: - - main + - main pull_request: branches: - - main + - main defaults: run: @@ -19,23 +19,23 @@ jobs: # runs all of the steps inside the specified container rather than on the VM host. # Because of this the network configuration changes from host based network to a container network. container: - image: node:10.16-jessie + image: node:10.16-jessie services: mongodb: image: mongo ports: - - 27017:27017 + - 27017:27017 steps: - - uses: actions/checkout@v1 - - run: npm ci - - run: node client.js - env: - # use mongodb for the host here because we have specified a container for the job. - # If we were running the job on the VM this would be localhost - MONGODB_HOST: mongodb - MONGODB_PORT: ${{ job.services.mongodb.ports[27017] }} + - uses: actions/checkout@v1 + - run: npm ci + - run: node client.js + env: + # use mongodb for the host here because we have specified a container for the job. + # If we were running the job on the VM this would be localhost + MONGODB_HOST: mongodb + MONGODB_PORT: ${{ job.services.mongodb.ports[27017] }} # Runs all steps on the VM # The service containers will use host port binding instead of container networking so you access them via localhost rather than the service name @@ -46,15 +46,15 @@ jobs: mongodb: image: mongo ports: - # will assign a random free host port - - 27017/tcp + # will assign a random free host port + - 27017/tcp steps: - - uses: actions/checkout@v1 - - run: npm ci - - run: node client.js - env: - # use localhost for the host here because we are running the job on the VM. - # If we were running the job on in a container this would be mongodb - MONGODB_HOST: localhost - MONGODB_PORT: ${{ job.services.mongodb.ports[27017] }} # get randomly assigned published port + - uses: actions/checkout@v1 + - run: npm ci + - run: node client.js + env: + # use localhost for the host here because we are running the job on the VM. + # If we were running the job on in a container this would be mongodb + MONGODB_HOST: localhost + MONGODB_PORT: ${{ job.services.mongodb.ports[27017] }} # get randomly assigned published port diff --git a/.github/workflows/postgres-service.yml b/.github/workflows/postgres-service.yml index 30f623b..54973c4 100644 --- a/.github/workflows/postgres-service.yml +++ b/.github/workflows/postgres-service.yml @@ -3,10 +3,10 @@ name: Postgres Service Example on: push: branches: - - main + - main pull_request: branches: - - main + - main jobs: container-job: @@ -15,7 +15,7 @@ jobs: # runs all of the steps inside the specified container rather than on the VM host. # Because of this the network configuration changes from host based network to a container network. container: - image: node:10.16-jessie + image: node:10.16-jessie services: postgres: @@ -25,21 +25,21 @@ jobs: POSTGRES_PASSWORD: postgres POSTGRES_DB: postgres ports: - - 5432:5432 + - 5432:5432 # needed because the postgres container does not provide a healthcheck options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v1 - - run: npm ci - working-directory: ./postgres - - run: node client.js - working-directory: ./postgres - env: - # use postgres for the host here because we have specified a container for the job. - # If we were running the job on the VM this would be localhost - POSTGRES_HOST: postgres - POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} + - uses: actions/checkout@v1 + - run: npm ci + working-directory: ./postgres + - run: node client.js + working-directory: ./postgres + env: + # use postgres for the host here because we have specified a container for the job. + # If we were running the job on the VM this would be localhost + POSTGRES_HOST: postgres + POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} # Runs all steps on the VM # The service containers will use host port binding instead of container networking so you access them via localhost rather than the service name @@ -55,18 +55,18 @@ jobs: POSTGRES_DB: postgres ports: # will assign a random free host port - - 5432/tcp + - 5432/tcp # needed because the postgres container does not provide a healthcheck options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v1 - - run: npm ci - working-directory: ./postgres - - run: node client.js - working-directory: ./postgres - env: - # use localhost for the host here because we are running the job on the VM. - # If we were running the job on in a container this would be postgres - POSTGRES_HOST: localhost - POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} # get randomly assigned published port + - uses: actions/checkout@v1 + - run: npm ci + working-directory: ./postgres + - run: node client.js + working-directory: ./postgres + env: + # use localhost for the host here because we are running the job on the VM. + # If we were running the job on in a container this would be postgres + POSTGRES_HOST: localhost + POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} # get randomly assigned published port diff --git a/.github/workflows/redis-service.yml b/.github/workflows/redis-service.yml index dfa68e8..a121e39 100644 --- a/.github/workflows/redis-service.yml +++ b/.github/workflows/redis-service.yml @@ -3,36 +3,36 @@ name: Redis Service Example on: push: branches: - - main + - main pull_request: branches: - - main + - main jobs: container-job: runs-on: ubuntu-latest container: - image: node:10.16-jessie + image: node:10.16-jessie services: redis: image: redis ports: - - 6379:6379 + - 6379:6379 options: --entrypoint redis-server steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v1 - - run: npm ci - working-directory: ./redis + - run: npm ci + working-directory: ./redis - - run: node client.js - working-directory: ./redis - env: - REDIS_HOST: redis - REDIS_PORT: ${{ job.services.redis.ports[6379] }} + - run: node client.js + working-directory: ./redis + env: + REDIS_HOST: redis + REDIS_PORT: ${{ job.services.redis.ports[6379] }} vm-job: runs-on: ubuntu-latest @@ -41,17 +41,17 @@ jobs: redis: image: redis ports: - - 6379/tcp + - 6379/tcp options: --entrypoint redis-server steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v1 - - run: npm ci - working-directory: ./redis + - run: npm ci + working-directory: ./redis - - run: node client.js - working-directory: ./redis - env: - REDIS_HOST: localhost - REDIS_PORT: ${{ job.services.redis.ports[6379] }} + - run: node client.js + working-directory: ./redis + env: + REDIS_HOST: localhost + REDIS_PORT: ${{ job.services.redis.ports[6379] }}