Commit 3aee82da authored by Svetomir Smiljkovic's avatar Svetomir Smiljkovic

Update github checkout action and go versions

parent 1a3e2c11
name: Go
on: [push, pull_request]
jobs:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.13', '1.x']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.x
- name: Set up env
go-version: ${{ matrix.go }}
- name: Setup env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Cache Go modules
uses: actions/cache@v1
with:
......@@ -36,19 +33,14 @@ jobs:
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Set up GolangCI-Lint
- name: Setup GolangCI-Lint
run: go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
working-directory: ~
- name: Lint
run: make lint
- name: Vet
run: make vet
- name: Build
run: make build
- name: Test
run: make test
......@@ -11,15 +11,12 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.x
go-version: '1.13'
- name: Checkout
uses: actions/checkout@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
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