mirror of
https://github.com/ii64/sonic.git
synced 2026-06-21 00:46:43 +08:00
29 lines
663 B
YAML
29 lines
663 B
YAML
name: Push Check
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- name: Check License Header
|
|
uses: apache/skywalking-eyes@main
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Unit Test
|
|
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
|