Skip to content

Commit

Permalink
feat(*): cleanup pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemTrofimushkin committed Feb 14, 2022
1 parent 21fe947 commit c736b40
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,20 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
go mod download
- name: Build
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v .

# - name: Calc coverage and test
# run: |
# export PATH=$PATH:$(go env GOPATH)/bin
# go test ./... -v -covermode=count -coverprofile=coverage.out

# - name: Convert coverage to lcov
# uses: jandelgado/[email protected]
# with:
# infile: coverage.out
# outfile: coverage.lcov

# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# path-to-lcov: coverage.lcov

- name: Build collector
uses: docker/build-push-action@v1
with:
Expand Down

0 comments on commit c736b40

Please sign in to comment.