Skip to content

Commit

Permalink
build: Add CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed May 19, 2020
1 parent b011020 commit b9094da
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ci

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-18.04
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with: # Ideally this should be picked up from .go-version rather than hard-coded
go-version: 1.14.1
-
name: Snapshot build (cross-platform)
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: build --snapshot --skip-post-hooks

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-18.04
- windows-2019
- macos-10.15
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with: # Ideally this should be picked up from .go-version rather than hard-coded
go-version: 1.14.1
-
name: Go mod verify
run: go mod verify
-
name: Run tests
run: make test
File renamed without changes.

0 comments on commit b9094da

Please sign in to comment.