Skip to content

Commit

Permalink
Merge 5c0d62c into 7e0cea7
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawaha committed Oct 7, 2020
2 parents 7e0cea7 + 5c0d62c commit a2c460a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Expand Up @@ -9,7 +9,7 @@ env:
NAME_IMAGE: "${{ secrets.DOCKER_USERNAME }}/kagome"

jobs:
build:
docker:
runs-on: ubuntu-latest
steps:
# Clone and checkout the repo. "fetch-depth" is needed in order to get the
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/go.yml
@@ -0,0 +1,60 @@
name: Go

on:
push:
branches:
- v2
pull_request:
types: [opened, synchronize]

jobs:
# test:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# go: ['1.13.x', '1.14.x', '1.15.x']
# runs-on: ${{ matrix.os }}
#
# steps:
# - name: Set up Go 1.x
# uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go }}
#
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
# with:
# path: src/github.com/ikawaha/kagome
#
# - name: Build
# run: go build -v ./...
# working-directory: src/github.com/ikawaha/kagome
#
# - name: Test
# run: |
# go test -v ./...
# cd tokenizer; go test -benchmem -bench .; cd ..
# working-directory: src/github.com/ikawaha/kagome

coverage:
# needs: test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: '1.x'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
path: src/github.com/ikawaha/kagome
- name: Install goveralls
run: go get github.com/mattn/goveralls
- name: Coverage
run: |
go test -v -coverprofile=profile.cov -covermode=atomic ./...
goveralls -coverprofile=profile.cov -service=github
working-directory: src/github.com/ikawaha/kagome
env:
COVERALLS_TOKEN: ${{ github.token }}

0 comments on commit a2c460a

Please sign in to comment.