Commit ec9ddf2b authored by Svetomir Smiljkovic's avatar Svetomir Smiljkovic Committed by GitHub

Merge pull request #5 from svetomir/master

Update github workflows
parents 2cc0c5a2 a0552f3b
name: Go name: Go
on: [push, pull_request] on: [push, pull_request]
jobs:
jobs:
build: build:
name: Build name: Build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go: [1.13, 1.x]
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
steps: steps:
- name: Setup Go
- name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.x go-version: ${{ matrix.go }}
- name: Setup env
- name: Set up env
run: | run: |
echo "::set-env name=GOPATH::$(go env GOPATH)" echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin" echo "::add-path::$(go env GOPATH)/bin"
shell: bash shell: bash
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Cache Go modules - name: Cache Go modules
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
...@@ -36,19 +33,14 @@ jobs: ...@@ -36,19 +33,14 @@ jobs:
${{ runner.OS }}-build-${{ env.cache-name }}- ${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build- ${{ runner.OS }}-build-
${{ runner.OS }}- ${{ runner.OS }}-
- name: Setup GolangCI-Lint
- name: Set up GolangCI-Lint
run: go get -u github.com/golangci/golangci-lint/cmd/golangci-lint run: go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
working-directory: ~ working-directory: ~
- name: Lint - name: Lint
run: make lint run: make lint
- name: Vet - name: Vet
run: make vet run: make vet
- name: Build - name: Build
run: make build run: make build
- name: Test - name: Test
run: make test run: make test
...@@ -11,15 +11,12 @@ jobs: ...@@ -11,15 +11,12 @@ jobs:
goreleaser: goreleaser:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Setup Go
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.x go-version: 1.13
- name: Checkout
uses: actions/checkout@v2
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1 uses: goreleaser/goreleaser-action@v1
with: with:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment