Merge pull request #49 from MinaFoundation/caclulate-block-size #236
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 | |
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 |