Skip to content

fix: skip encoding an inline field if it is null #165

fix: skip encoding an inline field if it is null

fix: skip encoding an inline field if it is null #165

Workflow file for this run

name: Go
on:
push:
branches:
- master
pull_request:
jobs:
race-test:
name: Test with -race
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
go-version: [ "1.18", "1.19", "1.20" ]
runs-on: ${{ matrix.os }}
steps:
- name: setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: checkout
uses: actions/checkout@v3
- name: test
run: |
make test
i386-test:
name: Test in i386
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
go-version: [ "1.18", "1.19", "1.20" ]
runs-on: ${{ matrix.os }}
env:
GOARCH: "386"
steps:
- name: setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: checkout
uses: actions/checkout@v3
- name: test
run: |
make simple-test
ycat:
name: ycat
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: checkout
uses: actions/checkout@v3
- name: build
run: |
make ycat/build
- name: run
run: |
./ycat .github/workflows/go.yml
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: checkout
uses: actions/checkout@v3
- name: measure coverage
run: |
make cover
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true