Skip to content

ci: restore workflow pipeline, fix some problems of lint and ut #427

ci: restore workflow pipeline, fix some problems of lint and ut

ci: restore workflow pipeline, fix some problems of lint and ut #427

Workflow file for this run

name: Check
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
Test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: '1.19'
- name: Running go tests with coverage
env:
GO111MODULE: on
run: make cover
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
GolangLint:
name: Golang Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: '1.19'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.58.2
skip-cache: true
LicenseCheck:
name: License Check
runs-on: ubuntu-latest
env:
TERM: xterm
steps:
- uses: actions/checkout@v4
- uses: apache/skywalking-eyes@main