Skip to content

Commit

Permalink
Fix: single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasion committed Sep 5, 2020
1 parent 90556e3 commit e135223
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 85 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/go.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/publish.yml

This file was deleted.

32 changes: 30 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
name: release

on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
ci-build:
strategy:
matrix:
go-version: [ 1.14.x, 1.15.x ]
os: [ ubuntu-latest, ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Go version
run: go version
- name: Test
run: go test ./...
- name: Build
run: go build
release:
name: Release
runs-on: ubuntu-latest
Expand All @@ -20,9 +47,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-release $DRY_RUN_OPT
- uses: actions/setup-go@v2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: ^1.14
- run: docker login docker.pkg.github.com -u docker -p ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v2
with:
Expand Down

0 comments on commit e135223

Please sign in to comment.