-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.73 KB
/
integration.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
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"
timeout-minutes: 30
- 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
- name: 📎 Upload logs
uses: actions/upload-artifact@v3
if: always()
with:
name: logs
path: integration-test/logs