Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Run Tests and Linting Before Releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed May 24, 2020
1 parent 32f084a commit 93f2e84
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,45 @@ on:
tags:
- "*"
jobs:
lint:
name: Lint All New Commits
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
- name: Run golangci-lint
uses: actions-contrib/golangci-lint@v1
env:
GOROOT: ""
with:
args: "run"
test:
name: Test New Commits
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: go test -v ./...
goreleaser:
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 93f2e84

Please sign in to comment.