Skip to content

Commit

Permalink
Add github-actions ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
steveteuber committed Sep 10, 2021
1 parent 8d85c83 commit d2fdac3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

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

jobs:
build:
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Read Go version
id: go-version
run: |
echo "::set-output name=content::$(cat .go-version)"
- name: Setup Go
uses: actions/setup-go@v2
with:
# TODO: Replace with go-version-from-file when it is supported
# https://github.com/actions/setup-go/pull/62
go-version: ${{ steps.go-version.outputs.content }}

- name: Build Snapshot
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: build --snapshot --rm-dist

0 comments on commit d2fdac3

Please sign in to comment.