Skip to content

Instantly share code, notes, and snippets.

@Roms1383
Created November 15, 2019 07:43
Show Gist options
  • Save Roms1383/16b96afa917aa56051fe4c4db6ad2fb6 to your computer and use it in GitHub Desktop.
Save Roms1383/16b96afa917aa56051fe4c4db6ad2fb6 to your computer and use it in GitHub Desktop.
Integration tests of a MESG Service on GitHub Actions ✅
#!/bin/sh
npx rimraf ~/.mesg
mesg-cli daemon:start
mesg-cli account:create $MESG_ACCOUNT --passphrase $MESG_PASSPHRASE --quiet
mesg-cli service:create "$(mesg-cli service:compile --quiet)" --account $MESG_ACCOUNT --passphrase $MESG_PASSPHRASE --quiet > MESG_SERVICE_HASH.txt
mesg-cli service:start "$(cat MESG_SERVICE_HASH.txt)" --env PUSHER_APP_ID=$PUSHER_APP_ID --env PUSHER_APP_KEY=$PUSHER_APP_KEY --env PUSHER_APP_SECRET=$PUSHER_APP_SECRET --env PUSHER_CLUSTER=$PUSHER_CLUSTER --quiet > MESG_INSTANCE_HASH.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment