From 931aebc7bf9ebc529d7b64264c0d54f5d581ad89 Mon Sep 17 00:00:00 2001 From: Ruins Date: Wed, 1 Apr 2026 06:00:45 +0000 Subject: [PATCH] test go codes on GHA --- .github/workflows/build.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14a3d9e..8764c32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,11 +9,10 @@ on: jobs: build-and-test: runs-on: ubuntu-latest + container: + image: golang:1.23-alpine steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - uses: actions/setup-go@v5 - with: - go-version: "1.23" - name: Cache Go modules id: cache-go uses: actions/cache@v4 @@ -23,12 +22,9 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Download Go modules - shell: bash if: ${{ steps.cache-go.outputs.cache-hit != 'true' }} run: go mod download - name: Go build - shell: bash run: go build ./... - name: Go test - shell: bash run: go test ./...