github.com/bytedance/gopkg@v0.0.0-20240514070511-01b2cbcf35e1/.github/workflows/pr-check.yml (about)

     1  name: Pull Request Check
     2  
     3  on:
     4    pull_request:
     5      paths-ignore:
     6        - '**.md'
     7  
     8  jobs:
     9    build:
    10      runs-on: self-hosted
    11      steps:
    12        - uses: actions/checkout@v2
    13  
    14        - name: Check Branch
    15          run: ./check_branch_name.sh ${{ github.head_ref }}
    16  
    17        - name: Set up Go
    18          uses: actions/setup-go@v2
    19          with:
    20            go-version: 1.15
    21  
    22        - uses: actions/cache@v2
    23          with:
    24            path: ~/go/pkg/mod
    25            key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    26            restore-keys: |
    27              ${{ runner.os }}-go-
    28  
    29        - name: Benchmark
    30          run: go test -bench=. -cpu=4 -benchmem -run=none ./...