feat: Add Asset type support and fix amount field serialization (#5) #7
This file contains hidden or 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: 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 |