Skip to content

Merge pull request #10 from go-x-pkg/flag-n-compact-json-output #11

Merge pull request #10 from go-x-pkg/flag-n-compact-json-output

Merge pull request #10 from go-x-pkg/flag-n-compact-json-output #11

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
- develop
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ '1.16', '1.17' ]
name: Go ${{ matrix.go }} sample
steps:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- 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: Tests
run: go test ./...