Health Check #54805
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: 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/vault-unit | |
run: | | |
go mod verify | |
go mod tidy | |
go mod vendor | |
- name: Install static dependencies (rest) | |
env: | |
GO111MODULE: on | |
working-directory: services/vault-rest | |
run: | | |
go mod verify | |
go mod tidy | |
go mod vendor | |
- name: Unit Test (unit) | |
working-directory: services/vault-unit | |
run: | | |
go test -v ./... -timeout=10s | |
- name: Unit Test (rest) | |
working-directory: services/vault-rest | |
run: | | |
go test -v ./... -timeout=10s |