From 5d9425aff888faa6b4a026dd11f0110d675c1c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Sat, 16 May 2020 01:11:05 +0200 Subject: [PATCH] add gh actions --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..119ccd1 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 ./...