Skip to content

Add JSON/YAML marshalling/unmarshalling #38

Add JSON/YAML marshalling/unmarshalling

Add JSON/YAML marshalling/unmarshalling #38

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
if: github.ref != 'refs/heads/main'
with:
go-version: 1.17
- name: Go modules cache
uses: actions/cache@v2
if: github.ref != 'refs/heads/main'
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run golangci-lint
if: github.ref != 'refs/heads/main'
uses: golangci/[email protected]
with:
version: v1.44.0
skip-go-installation: true
- name: Build
if: github.ref != 'refs/heads/main'
run: go build -v ./...
- name: Test
if: github.ref != 'refs/heads/main'
run: go test -v ./...