Skip to content

Commit

Permalink
CI: fix (#144)
Browse files Browse the repository at this point in the history
* try submodule init and use secrets.github_token

* CI: Build layer

* README: update build status badge
  • Loading branch information
dannypsnl authored Apr 30, 2020
1 parent 116ce41 commit d26e37f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ jobs:
echo "### golint"
$(go env GOPATH)/bin/golint ./...
exit 0
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go-version: [1.12, 1.13, 1.14]
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Go Install
run: go install ./...
test:
name: Test
runs-on: ${{ matrix.os }}
Expand All @@ -36,8 +53,7 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -t ./...
run: git submodule update --init
- name: Go Test
run: go test ./...
- name: Go Race Test
Expand All @@ -55,10 +71,11 @@ jobs:
uses: actions/checkout@v2
- name: Calculate coverage
run: |
git submodule update --init
go test -v -covermode=count -coverprofile=coverage.out ./...
- name: Coveralls
env:
COVERALLS_TOKEN: "YZKB1SLTzPJMOdXp5U3xwEsh4++Xe8EeVK8SZVEQkn/y4xCbzmbdo6BJ4B/eGBG6bK4DLzFD3sb6uaUB2bHlVUXnR8YHbetjps6PUwLYtX9UdcBjB7UN5tdQs1d8k2qg7vPNtKVEY4kJHFURijc4Kk+zlNbq1oGJcEfm6gz+zGg="
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=github
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# llvm

[![Build Status](https://travis-ci.org/llir/llvm.svg?branch=master)](https://travis-ci.org/llir/llvm)
![Build Status](https://github.com/llir/llvm/workflows/Go/badge.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/llir/llvm/badge.svg?branch=master)](https://coveralls.io/github/llir/llvm?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/llir/llvm)](https://goreportcard.com/report/github.com/llir/llvm)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/llir/llvm)
Expand Down

0 comments on commit d26e37f

Please sign in to comment.