Skip to content

returning json

returning json #4

Workflow file for this run

name: template
on:
push:
branches:
- master
jobs:
test:
name: run tests
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: build
run: |
cd template
docker-compose build
- name: test config
run: |
cd template
docker-compose run --rm nginx nginx -t
- name: start servers
run: |
cd template
docker-compose up -d
- name: run tests
run: |
cd template
../support/test.sh ./about