Mondaynet Integration Tests #851
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: Mondaynet Integration Tests | |
on: | |
push: | |
branches: | |
- '**mondaynet**' | |
schedule: | |
- cron: '0 0 * * 2' | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
integration-tests-mondaynet: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Tailscale | |
uses: tailscale/github-action@v1 | |
with: | |
authkey: ${{ secrets.TAILSCALE_AUTHKEY }} | |
version: 1.32.2 | |
- name: Configure SSH | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$SSH_KEY" > ~/.ssh/id.key | |
chmod 600 ~/.ssh/id.key | |
cat >>~/.ssh/config <<END | |
Host mondaynet | |
HostName $SSH_HOST | |
User $SSH_USER | |
IdentityFile ~/.ssh/id.key | |
StrictHostKeyChecking no | |
END | |
env: | |
SSH_USER: ${{ secrets.MONDAYNET_TORU_SSH_USER }} | |
SSH_KEY: ${{ secrets.MONDAYNET_TORU_SSH_KEY }} | |
SSH_HOST: ecad-mondaynet-archive | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/hydrogen | |
- run: npm ci | |
- run: npm run build | |
- | |
id: originate-contracts-mondaynet | |
working-directory: ./integration-tests | |
env: | |
MONDAYNET: true | |
run: npm run test:originate-known-contracts | |
- | |
if: always() | |
id: integration-tests-mondaynet | |
working-directory: ./integration-tests | |
env: | |
TEZOS_MONDAYNET_CONTRACT_ADDRESS: ${{ steps.originate-contracts-mondaynet.outputs.knownContractAddress }} | |
TEZOS_MONDAYNET_BIGMAPCONTRACT_ADDRESS: ${{ steps.originate-contracts-mondaynet.outputs.knownBigMapContractAddress }} | |
TEZOS_MONDAYNET_TZIP1216CONTRACT_ADDRESS: ${{ steps.originate-contracts-mondaynet.outputs.knownTzip12BigMapOffChainContractAddress }} | |
TEZOS_MONDAYNET_SAPLINGCONTRACT_ADDRESS: ${{ steps.originate-contracts-mondaynet.outputs.knownSaplingContractAddress }} | |
TEZOS_MONDAYNET_ON_CHAIN_VIEW_CONTRACT: ${{ steps.originate-contracts-mondaynet.outputs.knownOnChainViewContractAddress }} | |
run: npm run test:mondaynet -- --maxWorkers=2 | |
- | |
name: Slack Notification | |
if: always() | |
uses: ravsamhq/notify-slack-action@v1 | |
with: | |
status: ${{ job.status }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
notification_title: "Taquito Mondaynet Integration Tests ${{job.status}}" | |
message_format: "{emoji} *{workflow}* {status_message} on <{commit_url}|{commit_sha}> | <{run_url}|View Run>" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.INTEGRATION_TESTS_SLACK_WEBHOOK }} |