mirror of
https://github.com/ii64/sonic.git
synced 2026-06-21 00:46:43 +08:00
27 lines
598 B
YAML
27 lines
598 B
YAML
name: Pull Request Check
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Check Branch
|
|
run: ./check_branch_name.sh ${{ github.head_ref }}
|
|
|
|
- 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: Benchmark
|
|
run: go test -bench=. -benchmem -run=none ./...
|