Release 10/18 - permission mapping of batched mint mutation #130
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: Keto relations test | |
on: | |
push: | |
branches: | |
- main | |
- release | |
pull_request: | |
branches: | |
- "**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Keto relations test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create docker network | |
run: docker network create keto | |
- name: Setup docker | |
env: | |
image_tag: v0.11.0-alpha.0 | |
ns_file: namespaces.keto.ts | |
run: | | |
# More setup | |
init_path=$(pwd) | |
shopt -s expand_aliases | |
# Init container and sleep for 300 seconds | |
nohup docker run --network keto --name keto \ | |
--entrypoint '/bin/sleep' \ | |
-v $init_path/$ns_file:/app/namespaces/$ns_file \ | |
-v $init_path/test/config.yaml:/etc/keto.yaml \ | |
-p 4466:4466 -p 4467:4467 \ | |
-d oryd/keto:$image_tag \ | |
300 > nohup.out 2> nohup.err < /dev/null & | |
# alias for shorter docker commands | |
alias keto='docker exec keto keto --config /etc/keto.yaml' | |
# wait for the container to be up | |
while [[ -z $(docker ps | grep keto) ]];do | |
echo Waiting for Keto container | |
sleep 5 | |
done | |
# Run migrations | |
keto migrate up --yes | |
# Start Server | |
keto serve & | |
- name: Run relations test | |
run: | | |
python3 test/run.py |