Skip to content

Merge pull request #43 from MinaFoundation/block-producers-uptime-lef… #210

Merge pull request #43 from MinaFoundation/block-producers-uptime-lef…

Merge pull request #43 from MinaFoundation/block-producers-uptime-lef… #210

Workflow file for this run

name: Integration
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
build:
runs-on: minafoundation-xlarge-runners
steps:
- name: 📥 Checkout
uses: actions/checkout@v3
- name: 📥 Update Git Submodules
run: |
git submodule init
git submodule update
- name: 📦 Install Nix
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: 🤌 Get Minimina
uses: MinaFoundation/install-minimina-action@v1
with:
stream: stable
# commit_or_branch: resource-experiments
- name: 🛠️ Build Docker
env:
IMAGE_NAME: uptime-service-backend
TAG: integration-test
run: nix-shell --run "make docker"
- name: 🧪 Run Integration Tests
env:
# UPTIME_SERVICE_SECRET is a passphrase needed to decrypt uptime service config files
UPTIME_SERVICE_SECRET: ${{ secrets.UPTIME_SERVICE_SECRET }}
run: nix-shell --run "make integration-test"
- name: 📖 Get logs
if: always()
run: |
mkdir -p integration-test/logs
minimina network list
minimina network status -n integration-test
minimina node logs -n integration-test -i uptime-service-backend -r > integration-test/logs/uptime-service-backend.log
minimina node logs -n integration-test -i node-a -r > integration-test/logs/node-a.log
minimina node logs -n integration-test -i node-b -r > integration-test/logs/node-b.log
minimina node logs -n integration-test -i node-c -r > integration-test/logs/node-c.log
- name: 📎 Upload logs
uses: actions/upload-artifact@v3
if: always()
with:
name: logs
path: integration-test/logs