Skip to content

Commit df3f16f

Browse files
authored
Merge pull request #4 from MinaFoundation/basic-workflow
Basic build workflow attempt
2 parents 760f764 + 7172637 commit df3f16f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
build:
15+
runs-on: minafoundation-default-runners
16+
17+
steps:
18+
- name: 📥 Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: 📥 Update Git Submodules
22+
run: |
23+
git submodule init
24+
git submodule update
25+
26+
- name: 📦 Install Nix
27+
uses: cachix/install-nix-action@v22
28+
with:
29+
nix_path: nixpkgs=channel:nixos-unstable
30+
31+
- name: 🛠️ Build
32+
run: nix-shell --run "make build"
33+
34+
- name: 🛠️ Build Docker
35+
env:
36+
TAG: uptime-service-backend-test
37+
run: nix-shell --run "make docker"
38+
39+
- name: 🧪 Test
40+
run: nix-shell --run "make test"

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Uptime Service Backend
22

3+
[![Build](https://github.com/MinaFoundation/uptime-service-backend/actions/workflows/build.yml/badge.svg)](https://github.com/MinaFoundation/uptime-service-backend/actions/workflows/build.yml)
4+
35
As part of delegation program, nodes are to upload some proof of their activity. These proofs are to be accumulated and utilized for scoring. This service provides the nodes with a way to submit their data for score calculation.
46

57
## Constants

0 commit comments

Comments
 (0)