Skip to content

Commit

Permalink
Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 17, 2020
1 parent f41657b commit 41b23ce
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on: [push]
# Run on push, skip release tags
on:
push:
tags-ignore: ['*']

name: Push commits

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
# Run on any tag
on:
push:
tags: ['*']

name: Release a tag

jobs:
test:
strategy:
matrix:
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
- name: Generate coverage report
run: ./.github/workflows/codecov.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run linter
uses: golangci/golangci-lint-action@v1
with:
version: v1.28
goreleaser:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 41b23ce

Please sign in to comment.