Skip to content

[BLOCK-2310] Modified to catch panic from json.Marshal function (#46) #154

[BLOCK-2310] Modified to catch panic from json.Marshal function (#46)

[BLOCK-2310] Modified to catch panic from json.Marshal function (#46) #154

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