diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml deleted file mode 100644 index e4fcf63d..00000000 --- a/.github/workflows/pr-check.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Pull Request Check - -on: - pull_request: - paths-ignore: - - '**.md' - -jobs: - build: - runs-on: self-hosted - 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.15 - - - 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=. -cpu=4 -benchmem -run=none ./... diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml index 1dd499df..bac332e7 100644 --- a/.github/workflows/push-check.yml +++ b/.github/workflows/push-check.yml @@ -4,15 +4,18 @@ on: push: paths-ignore: - '**.md' + pull_request: + paths-ignore: + - '**.md' jobs: build: runs-on: self-hosted steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.15 @@ -24,7 +27,7 @@ jobs: ${{ runner.os }}-go- - name: Check License Header - uses: apache/skywalking-eyes@main + uses: apache/skywalking-eyes/header@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -34,4 +37,4 @@ jobs: go vet -stdmethods=false $(go list ./...) - name: Unit Test - run: go test -v -cpu=4 -race -covermode=atomic -coverprofile=coverage.out ./... + run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...