Skip to content

Health Check

Health Check #56414

Workflow file for this run

name: Health Check
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '*/30 * * * *'
jobs:
build:
name: From Scratch Test
runs-on: ubuntu-latest
steps:
- name: Prepare
uses: actions/setup-go@v3
with:
go-version: '1.20'
id: go
- name: Checkout
uses: actions/checkout@v3
- name: Install dynamic dependencies
run: |
wget https://github.com/zeromq/libzmq/releases/download/v4.3.1/zeromq-4.3.1.tar.gz -O /tmp/zeromq.tar.gz
tar -xzvf /tmp/zeromq.tar.gz -C /tmp && cd /tmp/zeromq-* && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_CURVE=ON .. && make && sudo make install
- name: Install static dependencies (unit)
env:
GO111MODULE: on
working-directory: services/ledger-unit
run: |
go mod verify
go mod tidy
go mod vendor
- name: Install static dependencies (rest)
env:
GO111MODULE: on
working-directory: services/ledger-rest
run: |
go mod verify
go mod tidy
go mod vendor
- name: Unit Test (unit)
working-directory: services/ledger-unit
run: |
go test -v ./... -timeout=10s
- name: Unit Test (rest)
working-directory: services/ledger-rest
run: |
go test -v ./... -timeout=10s