Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
multiple stages
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed Sep 27, 2019
1 parent e9bbfe0 commit fbddda4
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
on: [push, pull_request]
name: golang ci template github actions
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: [1.13.x]
- name: Checkout code
uses: actions/checkout@v1
- name: Install tools
run: |
go get github.com/mattn/goveralls
go get github.com/golangci/golangci-lint/cmd/golangci-lint
- name: Lint
run: |
export PATH=$PATH:$(go env GOPATH)/bin
./pre-commit
test:
strategy:
matrix:
Expand All @@ -14,14 +32,21 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out

coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: [1.13.x]
- name: Checkout code
uses: actions/checkout@v1
- name: Install tools
run: |
go get github.com/mattn/goveralls
go get github.com/golangci/golangci-lint/cmd/golangci-lint
- name: Linter
run: |
export PATH=$PATH:$(go env GOPATH)/bin
./pre-commit
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out

0 comments on commit fbddda4

Please sign in to comment.