porting all github actions from bluesky-social/indigo to tangled CI
at main 1.3 kB view raw
1#!/bin/bash 2set -e 3set -x 4 5 6echo "1. Creating Account" 7./gosky --pds-host="http://localhost:4989" newAccount test@foo.com testman.test password > test.auth 8 9echo "2. Some Content" 10./gosky --pds-host="http://localhost:4989" --auth="test.auth" post "cats are really cool and the best" 11./gosky --pds-host="http://localhost:4989" --auth="test.auth" post "paul frazee needs to buy a sweater" 12 13echo "3. View That Content" 14./gosky --pds-host="http://localhost:4989" --auth="test.auth" feed --raw --author=self 15 16 17echo "4. Make a second account" 18./gosky --pds-host="http://localhost:4989" newAccount test2@foo.com friendbot.test password > test2.auth 19 20echo "5. Post on second account" 21./gosky --pds-host="http://localhost:4989" --auth="test2.auth" post "Im a big fan of the snow" 22 23echo "6. Upvote content" 24posturi=$(./gosky --pds-host=http://localhost:4989 --auth=test.auth feed --raw --author=self | jq -r .post.uri | head -n1) 25./gosky --pds-host="http://localhost:4989" --auth="test2.auth" vote $posturi up 26 27echo "7. Check notifications" 28./gosky --pds-host="http://localhost:4989" --auth="test.auth" notifs 29 30echo "8. Follow" 31./gosky --pds-host="http://localhost:4989" --auth="test2.auth" follows add $(cat test.auth | jq -r .did) 32 33echo "9. Check notifications" 34./gosky --pds-host="http://localhost:4989" --auth="test.auth" notifs 35 36 37 38echo "Success!"