Skip to content

Commit

Permalink
Merge pull request #2 from podtserkovskiy/ci
Browse files Browse the repository at this point in the history
ci
  • Loading branch information
Mikhail Podtserkovskiy authored Aug 27, 2020
2 parents b16ecd4 + 7d09568 commit 078e31c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ on:

jobs:

build:
name: Build
build-test-lint:
name: Build-Test-Lint
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go

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

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Get dependencies
run: go get -v -t -d ./...

- name: Build
run: go build -v .
- name: Build
run: go build -v .

- name: Test
run: go test -v .
- name: Test
run: go test -v .

- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: v1.30
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 078e31c

Please sign in to comment.