Merge pull request #14 from essentialkaos/develop

Improve CI workflow
main
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ 3 years ago committed by GitHub
commit 12fc78989b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,6 @@ jobs:
env:
SRC_DIR: src/github.com/${{ github.repository }}
GO111MODULE: auto
strategy:
matrix:
@ -29,12 +28,6 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
id: go
- name: Setup PATH
run: |
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
- name: Checkout
uses: actions/checkout@v3
@ -53,31 +46,29 @@ jobs:
working-directory: ${{env.SRC_DIR}}
run: go test -v -covermode count -coverprofile cover.out ./...
- name: Install goveralls
env:
GO111MODULE: off
run: go get -v github.com/mattn/goveralls
- name: Send coverage to Coveralls
working-directory: ${{env.SRC_DIR}}
- name: Send coverage data
uses: essentialkaos/goveralls-action@v1
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -service github -coverprofile cover.out
with:
path: ${{env.SRC_DIR}}
profile: cover.out
parallel: true
flag-name: linux-${{ matrix.go }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'
SendCoverage:
name: Send Coverage
runs-on: ubuntu-latest
- name: Install codeclimate-test-reporter
run: npm install -g codeclimate-test-reporter
needs: Go
- name: Send coverage to Codebeat
working-directory: ${{env.SRC_DIR}}
steps:
- name: Finish parallel tests
uses: essentialkaos/goveralls-action@v1
env:
CODECLIMATE_API_HOST: https://codebeat.co/webhooks/code_coverage
CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_TOKEN }}
run: codeclimate-test-reporter < cover.out
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
parallel-finished: true
Aligo:
name: Aligo
@ -87,7 +78,6 @@ jobs:
env:
SRC_DIR: src/github.com/${{ github.repository }}
GO111MODULE: auto
steps:
- name: Set up Go
@ -96,12 +86,6 @@ jobs:
go-version: '1.17.x'
id: go
- name: Setup PATH
run: |
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
- name: Checkout
uses: actions/checkout@v3
with:

@ -25,9 +25,9 @@ jobs:
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

@ -3,7 +3,7 @@ module github.com/essentialkaos/go-badge
go 1.17
require (
github.com/essentialkaos/check v1.2.1
github.com/essentialkaos/check v1.3.0
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
golang.org/x/image v0.0.0-20220321031419-a8550c1d254a
)

@ -1,6 +1,6 @@
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/essentialkaos/check v1.2.1 h1:avvyFy/1acUNwfxwuOLsHeCjfXtMygtbu0lVDr3nxFs=
github.com/essentialkaos/check v1.2.1/go.mod h1:PhxzfJWlf5L/skuyhzBLIvjMB5Xu9TIyDIsqpY5MvB8=
github.com/essentialkaos/check v1.3.0 h1:ria+8o22RCLdt2D/1SHQsEH5Mmy5S+iWHaGHrrbPUc0=
github.com/essentialkaos/check v1.3.0/go.mod h1:PhxzfJWlf5L/skuyhzBLIvjMB5Xu9TIyDIsqpY5MvB8=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=

Loading…
Cancel
Save