Skip to content

Mondaynet Integration Tests #890

Mondaynet Integration Tests

Mondaynet Integration Tests #890

Workflow file for this run

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@v4
- uses: actions/setup-node@v4
with:
node-version: lts/iron
- run: npm ci
- run: npm run build
- id: originate-contracts-mondaynet
working-directory: ./integration-tests
env:
MONDAYNET: true
run: npm run 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:weeklynet -- --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 }}