From 37f4d54d0d1f4f8cd4e97569d9704a92e5631d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=A7=80=E5=90=89?= <84045975+thc1006@users.noreply.github.com> Date: Fri, 18 Jul 2025 19:39:34 +0800 Subject: [PATCH] Update build-test.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 蔡秀吉 <84045975+thc1006@users.noreply.github.com> --- .github/workflows/build-test.yml | 42 +++++--------------------------- 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 01f3d9dfd..bcaf7a833 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,38 +1,7 @@ -name: build-test -on: - push: - branches: - - "main" - - "dev-v3" - - "release-**" - pull_request: - branches: - - "main" - - "dev-v3" - -permissions: - contents: read +# .github/workflows/build-test.yml -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout source code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 - - name: Add variables to environment file - run: cat ".github/env" >> "$GITHUB_ENV" - - name: Setup Go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pin@5.5.0 - with: - go-version: '${{ env.GOLANG_VERSION }}' - check-latest: true - - name: Test source headers are present - run: make test-source-headers - - name: Run unit tests - run: make test-coverage TESTCOUNT=2 - - name: Test build - run: make build name: build-test + on: push: branches: @@ -50,15 +19,16 @@ permissions: jobs: build: runs-on: ubuntu-latest + steps: - name: Checkout source code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 + uses: actions/checkout@v4 - name: Add variables to environment file run: cat ".github/env" >> "$GITHUB_ENV" - name: Setup Go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pin@5.5.0 + uses: actions/setup-go@v5 with: go-version: '${{ env.GOLANG_VERSION }}' check-latest: true @@ -67,7 +37,7 @@ jobs: run: make test-source-headers - name: Run unit tests - run: make test-coverage + run: make test-coverage TESTCOUNT=2 - name: Test build run: make build