Skip to content

Commit

Permalink
github actions workflow enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <[email protected]>
  • Loading branch information
developer-guy committed Nov 23, 2020
1 parent 7f64854 commit 35466a6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on:
push:
branches: [ "*" ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
matrix:
go-version: [ 1.13.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.29
args: --issues-exit-code=0
- name: Test
run: make test
- name: Build
run: make tester
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
build:
go test ./types/ && go build ./cmd/tester
test:
go test ./types/

tester:
go build ./cmd/tester

0 comments on commit 35466a6

Please sign in to comment.