use chain to get version and safe to upgrade flag #4942
Workflow file for this run
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: Tests and Coverage | |
on: [push] | |
jobs: | |
daemons: | |
name: Running Daemon Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.21 | |
id: go | |
- name: Prepare dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libjansson-dev libhiredis-dev | |
- name: Checkout code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Get dependencies | |
run: | | |
cd pkg | |
make getdeps | |
env: | |
GO111MODULE: on | |
- name: Run tests | |
run: | | |
cd pkg | |
make testrace | |
env: | |
GO111MODULE: on | |
- name: Build binaries | |
run: | | |
cd cmds | |
make | |
env: | |
GO111MODULE: on |