Skip to content

BLOCK-2308 fix invalid ID and return meanful response to client #148

BLOCK-2308 fix invalid ID and return meanful response to client

BLOCK-2308 fix invalid ID and return meanful response to client #148

Workflow file for this run

name: Build and Test
on:
push:
branches:
- develop
pull_request:
branches:
- "**"
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Check out code
uses: actions/checkout@v3
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
sudo apt-get install -y go-bindata
- name: Run Unit tests.
run: go test ./...
- name: Build dfuseeos
run: go build -o dfuseeos ./cmd/dfuseeos
# - name: Run build script
# run: ./scripts/build.sh -f -y