join networks nightly #27
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: join networks nightly | |
# Nightly action that tests joining network as a full node. | |
on: | |
workflow_dispatch: | |
inputs: | |
network: | |
type: choice | |
description: Network | |
options: | |
- omega | |
- mainnet | |
default: "omega" | |
schedule: | |
- cron: "0 1 * * 1-5" # Weekdays at 1am UTC | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
join: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Run join test | |
run: | | |
cd scripts/join | |
sudo go test . -v \ | |
--integration \ | |
--timeout=0 \ | |
--logs_file=docker_logs.txt \ | |
--halo_tag="main" \ | |
--network="${{github.event.inputs.network || 'mainnet'}}" | |
- name: Upload docker logs | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: docker-logs | |
path: scripts/join/docker_logs.txt | |
retention-days: 3 |