committed by
GitHub
parent
03ee750ed2
commit
3d189f08a9
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@@ -30,8 +30,6 @@ jobs:
|
|||||||
run: go test -bench . ./...
|
run: go test -bench . ./...
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
run: ./script/coverage
|
run: ./script/coverage
|
||||||
- name: Lint
|
|
||||||
run: ./script/lint
|
|
||||||
|
|
||||||
- name: Upload Unit Test Coverage
|
- name: Upload Unit Test Coverage
|
||||||
uses: codecov/codecov-action@v1.0.5
|
uses: codecov/codecov-action@v1.0.5
|
||||||
@@ -45,3 +43,27 @@ jobs:
|
|||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
file: integration.coverprofile
|
file: integration.coverprofile
|
||||||
flags: integration
|
flags: integration
|
||||||
|
|
||||||
|
lint:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: [1.13.x]
|
||||||
|
platform: [ubuntu-latest]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go-version }}
|
||||||
|
- name: Configure Go Environment
|
||||||
|
run: |
|
||||||
|
echo ::set-env name=GOPATH::${{ runner.workspace }}
|
||||||
|
echo ::add-path::${{ runner.workspace }}/bin
|
||||||
|
- name: Go Environment
|
||||||
|
run: go env
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Bootstrap
|
||||||
|
run: ./script/bootstrap
|
||||||
|
- name: Lint
|
||||||
|
run: ./script/lint
|
||||||
|
|||||||
Reference in New Issue
Block a user