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

@ -25,9 +25,9 @@ jobs:
fetch-depth: 2 fetch-depth: 2
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v2
with: with:
languages: go languages: go
- name: Perform CodeQL Analysis - 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 go 1.17
require ( require (
github.com/essentialkaos/check v1.2.1 github.com/essentialkaos/check v1.3.0
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
golang.org/x/image v0.0.0-20220321031419-a8550c1d254a 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/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.3.0 h1:ria+8o22RCLdt2D/1SHQsEH5Mmy5S+iWHaGHrrbPUc0=
github.com/essentialkaos/check v1.2.1/go.mod h1:PhxzfJWlf5L/skuyhzBLIvjMB5Xu9TIyDIsqpY5MvB8= 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 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= 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= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=

Loading…
Cancel
Save