Skip to content

Commit

Permalink
Fixup Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlinelfring committed Aug 22, 2020
1 parent be05525 commit 736019e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Build

on:
push:
Expand All @@ -7,23 +7,19 @@ on:
branches: [ main ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

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

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.14

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

- name: Test
run: go test -v .
- name: Test
run: go test -v ./...
12 changes: 8 additions & 4 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ on:
jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install Go

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.14

- name: Unshallow
run: git fetch --prune --unshallow

- name: Login docker.io
run: docker login -u celfring -p ${{ secrets.DOCKER_TOKEN }}

- name: Create release
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 736019e

Please sign in to comment.