Skip to content

Commit

Permalink
Add Github action that runs the demo on each PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbygdell committed Nov 16, 2023
1 parent 3b6c4b3 commit 34d6595
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test_demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Demo

on:
pull_request:

jobs:
demo:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses : actions/checkout@v4

- name: Run compose demo
run: |
cp config/config.yaml.example config/config.yaml
cp config/iss.json.example config/iss.json
cp .env.example .env
docker compose -f docker-compose-demo.yml up -d
until [ "$(docker inspect data_loader --format='{{.State.ExitCode}}')" -ne 0 ]; do
sleep 5
done
token=$(curl -s -k https://localhost:8080/tokens | jq -r '.[0]')
if [ curl -s -H "Authorization: Bearer $token" http://localhost:8443/metadata/datasets | jq -r .[] != "EGAD74900000101" ]; then
echo "demo failed"
exit 1
fi
shell: bash

0 comments on commit 34d6595

Please sign in to comment.