Skip to content

Commit

Permalink
add gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed May 15, 2020
1 parent a0733e3 commit 5d9425a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Metaschema Build CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
go-version: [1.13.x, 1.14.x]

runs-on: ${{ matrix.os }}
steps:

- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get Go dependencies
run: go get -v -t -d ./...

- name: Build metaschema
run: go build -v ./cli/gocomply_metaschema.go

- name: Unit tests
run: go test ./...

0 comments on commit 5d9425a

Please sign in to comment.