Skip to content

feat: Add Asset type support and fix amount field serialization (#5) #7

feat: Add Asset type support and fix amount field serialization (#5)

feat: Add Asset type support and fix amount field serialization (#5) #7

Workflow file for this run

name: Test
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
workflow_dispatch:
env:
GO_VERSION: 1.18
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Check out source
uses: actions/checkout@v4
- name: Run tests
run: make test
test-cover:
name: Unit tests with coverage
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Check out source
uses: actions/checkout@v4
- name: Run tests with coverage
run: make test-cover
- name: Generate coverage report
run: make test-cover-html
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.html
test-race:
name: Unit tests with race detector
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Check out source
uses: actions/checkout@v4
- name: Run tests with race detector
run: make test-race