specifying exact workflow versions per OX #62
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Run the app | |
run: docker-compose up -d | |
- name: Test app | |
run: | | |
NAME=$(docker run --network crud-app_default saltaaron/just-httpie GET crud-app:3000/users/1 | docker run -i --network crud-app_default saltaaron/just-jq -r '.[].name') | |
if [ $NAME != 'Marcia' ] ; then | |
echo "The expected name was not returned. $NAME was returned instead." | |
exit 1; | |
fi | |
- name: Test TLS | |
run: | | |
NAME=$(docker run --network crud-app_default saltaaron/just-httpie GET https://crud-app:3443/users/2 --verify no | docker run -i --network crud-app_default saltaaron/just-jq -r '.[].name') | |
if [ $NAME != 'Amy' ] ; then | |
echo "The expected name was not returned. $NAME was returned instead." | |
exit 1; | |
fi |