Skip to content

Commit

Permalink
Configure new ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xorcare committed Nov 17, 2020
1 parent d3535ad commit ceed9b2
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 28 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continuous Integration

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

jobs:
build:
name: Build
strategy:
matrix:
go:
- '1.15'
- '1.14'
- '1.13'
- '1.12'
- '1.11'
- '1.10'
- '1.9'
- '1.8'
os:
- 'ubuntu-18.04'
- 'macos-10.15'
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
env:
GOPATH: $HOME
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Running static checks
run: |
export GOPATH=$HOME/go
export GOBIN=$(go env GOPATH)/bin
export PATH=$PATH:$GOPATH
export PATH=$PATH:$GOBIN
mkdir -p $GOPATH/pkg
mkdir -p $GOBIN
mkdir -p $GOPATH/src/github.com/$GITHUB_REPOSITORY
mv $(pwd)/* $GOPATH/src/github.com/$GITHUB_REPOSITORY
cd $GOPATH/src/github.com/$GITHUB_REPOSITORY
if [ "${{ matrix.go }}" == "1.15" ]; \
then make ci; \
else go test ./... -count=10 -race; \
fi;
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,4 @@ checkstate: tools ## Checking the relevance of dependencies, and tools. Also, th
@echo 'checking the relevance of the committed generated files'
@go generate
@exit $$(git status -s | wc -l)
@echo 'checking the relevance of the committed golden files'
@make testup
@exit $$(git status -s | wc -l)
@go mod verify

0 comments on commit ceed9b2

Please sign in to comment.