use new default branch

This commit is contained in:
Andy McKay
2020-07-13 13:45:16 -07:00
parent 7ae0b005cc
commit 30306ecb1d
3 changed files with 17 additions and 17 deletions

View File

@@ -3,20 +3,20 @@ name: Mongodb Service Example
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
defaults:
run:
working-directory: ./mongodb
jobs:
container-job:
runs-on: ubuntu-latest
# runs all of the steps inside the specified container rather than on the VM host.
# 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
@@ -26,9 +26,9 @@ jobs:
image: mongo
ports:
- 27017:27017
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- run: npm ci
- run: node client.js
env:
@@ -50,7 +50,7 @@ jobs:
- 27017/tcp
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- run: npm ci
- run: node client.js
env:

View File

@@ -3,16 +3,16 @@ name: Postgres Service Example
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
container-job:
runs-on: ubuntu-latest
# runs all of the steps inside the specified container rather than on the VM host.
# 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
@@ -30,7 +30,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- run: npm ci
working-directory: ./postgres
- run: node client.js
@@ -60,7 +60,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- run: npm ci
working-directory: ./postgres
- run: node client.js

View File

@@ -3,10 +3,10 @@ name: Redis Service Example
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
container-job: