Skip to content

Commit

Permalink
Chore: Fix CI for v2 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Jun 27, 2021
1 parent 1f9f1e2 commit a78bc83
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,27 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
run: go mod download

# TESTS
- name: Run tests
run: go test -v -race -covermode atomic -coverprofile=covprofile ./...

# Run all tests with the race detector enabled
- name: Test
run: go test -v -race ./...

# TEST COVERAGE

# Install tools/cmd/cover
- name: Install tools/cmd/cover
run: go get golang.org/x/tools/cmd/cover

# Install overalls
- name: Install overalls
run: go get github.com/go-playground/overalls

# Overalls
- name: overalls
run: $(go env GOPATH)/bin/overalls -project /home/runner/work/sched -covermode atomic -debug -- -race -v -coverpkg ./...

# Install goveralls
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls

# Goveralls
- name: goveralls
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $(go env GOPATH)/bin/goveralls -coverprofile overalls.coverprofile -service=github -repotoken=$COVERALLS_TOKEN
run: goveralls -coverprofile=covprofile -service=github

# LINT
- name: Install golint
Expand Down

0 comments on commit a78bc83

Please sign in to comment.