Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 3ce4984

Browse files
authored
Migrate to Github Actions (#296)
1 parent 42e7e58 commit 3ce4984

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

.github/workflows/pull-request.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
env:
12+
GO11MODULE: 'on'
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
submodules: true
17+
fetch-depth: 0 # we want all tags for version check.
18+
lfs: true
19+
- uses: actions/setup-go@v2
20+
with:
21+
go-version: '^1.15.0'
22+
- name: Build and test
23+
run: make install-tools && make ci

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ README_FILES := $(shell find . -name '*README.md' | sort | tr '\n' ' ')
2323
defaul-goal: fmt lint vet embedmd goimports staticcheck test
2424

2525
# TODO: enable test-with-cover when find out why "scripts/check-test-files.sh: 4: set: Illegal option -o pipefail"
26-
.PHONY: travis-ci
27-
travis-ci: fmt lint vet embedmd goimports staticcheck test test-386 test-with-coverage
26+
.PHONY: ci
27+
ci: fmt lint vet embedmd goimports staticcheck test test-386 test-with-coverage
2828

2929
all-pkgs:
3030
@echo $(ALL_PKGS) | tr ' ' '\n' | sort

0 commit comments

Comments
 (0)