Skip to content

Commit

Permalink
Enable Github actions and disable travis (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan authored Apr 5, 2021
1 parent 804bd37 commit 2e718ab
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 29 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Go

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

jobs:
build:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Install depedencies
run: go get honnef.co/go/tools/cmd/staticcheck

- name: Build
run: go build -v ./...

- name: Test
run: go test -v -run "TestCRDT" -race -coverprofile=coverage.txt -covermode=atomic

- name: Staticcheck
run: staticcheck ./...

- name: Send coverage
run: bash <(curl -s https://codecov.io/bash)

suite:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Test
run: go test -v -run "TestDatastoreSuite" .
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit 2e718ab

Please sign in to comment.