Skip to content

Commit

Permalink
use GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lufia committed Nov 26, 2020
1 parent 60b5aec commit 9ae3ffd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go
on:
pull_request: {}
push:
tags:
- 'v[0-9]*'
env:
GO111MODULE: on
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.14
id: go
- uses: actions/checkout@v2
- run: make test
- run: make lint
release:
name: Release to GitHub Releases
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.14
id: go
- uses: actions/checkout@v2
- run: ./script/release
env:
GITHUB_TOKEN: ${{ secrets.MACKERELBOT_GITHUB_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

0 comments on commit 9ae3ffd

Please sign in to comment.