integration tests #423
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: integration tests | |
on: | |
schedule: | |
- cron: "0 7 * * *" | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
network: ["dev", "qa", "test", "main"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: install curl, wg, mycelium and add peers | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y wireguard | |
sudo apt-get install dirmngr | |
sudo apt-get install curl | |
wget https://github.com/threefoldtech/mycelium/releases/download/v0.5.4/mycelium-x86_64-unknown-linux-musl.tar.gz | |
tar xzf mycelium-x86_64-unknown-linux-musl.tar.gz | |
sudo ./mycelium --peers tcp://188.40.132.242:9651 quic://185.69.166.8:9651 --tun-name utun9 -k /tmp/mycelium_priv_key.bin & | |
- name: Run Tests | |
run: make integration | |
env: | |
MNEMONIC: ${{ secrets.MNEMONIC }} | |
NETWORK: ${{ matrix.network }} | |
# # yggdrasil installation | |
# gpg --fetch-keys https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/key.txt | |
# gpg --export 569130E8CA20FBC4CB3FDE555898470A764B32C9 | sudo apt-key add - | |
# echo 'deb http://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/ debian yggdrasil' | sudo tee /etc/apt/sources.list.d/yggdrasil.list | |
# sudo apt-get update | |
# sudo apt-get install yggdrasil | |
# sudo systemctl enable yggdrasil | |
# PEERS=$(curl https://raw.githubusercontent.com/AhmedHanafy725/yggdrasil-config/main/config.json | jq '.yggdrasil.peers[]' -r | sed 's/\//\\\//g' | sed -z 's/\n/\\n/g') | |
# sudo sed -i -- 's/Peers\: \[\]/Peers: [\n'"$PEERS"']/g' /etc/yggdrasil/yggdrasil.conf | |
# sudo systemctl stop yggdrasil | |
# sudo systemctl start yggdrasil |