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

Commit

Permalink
Migrate to Github Actions (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
punya authored Oct 28, 2021
1 parent 42e7e58 commit 3ce4984
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-20.04
env:
GO11MODULE: 'on'
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0 # we want all tags for version check.
lfs: true
- uses: actions/setup-go@v2
with:
go-version: '^1.15.0'
- name: Build and test
run: make install-tools && make ci
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ README_FILES := $(shell find . -name '*README.md' | sort | tr '\n' ' ')
defaul-goal: fmt lint vet embedmd goimports staticcheck test

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

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

0 comments on commit 3ce4984

Please sign in to comment.