Bump pymysql from 0.9.2 to 1.1.1 #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test Docker build" | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Docker Lint | |
run: | | |
docker run --rm -i hadolint/hadolint < Dockerfile | |
- name: Docker Build | |
run: docker build -t rulesdecision . | |
- name: Docker Test | |
run: | | |
docker run --rm --name rulesdecision-test -d rulesdecision | |
sleep 5 | |
STATUS_CODE=$(docker exec rulesdecision-test curl -s -o /dev/null -w "%{http_code}" localhost:8080/health) | |
docker stop rulesdecision-test | |
echo $STATUS_CODE | grep -q 200 |