-
Notifications
You must be signed in to change notification settings - Fork 116
69 lines (65 loc) · 2.56 KB
/
mondaynet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 }}