From 33c66b0e4459ac651e852efbfdad138581d2120a Mon Sep 17 00:00:00 2001 From: "huyanqing.16" Date: Sun, 29 Mar 2026 22:07:50 +0800 Subject: [PATCH 1/5] add github action for CI --- .github/workflows/ci.yml | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..08d0f94 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,60 @@ +name: Go CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + go-fmt-and-vet: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - name: Setup Go + uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 + with: + go-version: '1.23' + cache: true + - name: Go Formatting + run: | + files=$(go fmt ./...) + if [ -n "$files" ]; then + echo "The following file(s) do not conform to go fmt:" + echo "$files" + exit 1 + fi + test: + needs: go-fmt-and-vet + name: Test with Go ${{ matrix.go-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + go-version: ['1.19', '1.20', '1.21', '1.22', '1.23', '1.24', '1.25', '1.26'] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + cache: true + + - name: Install dependencies + run: go mod download + + - name: Verify dependencies + run: go mod verify + + - name: Build + run: go build -v ./... + + - name: Run Tests + run: go test -v -race ./... From 2ec8023a8e787cf060f1e6ca32d06f3619ff1124 Mon Sep 17 00:00:00 2001 From: "huyanqing.16" Date: Sun, 29 Mar 2026 22:13:54 +0800 Subject: [PATCH 2/5] add github action for CI --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08d0f94..fa6665f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,6 @@ jobs: uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 with: go-version: '1.23' - cache: true - name: Go Formatting run: | files=$(go fmt ./...) From 4dcdf9fc87154e7c6a59ec23b4204b0677dce4dd Mon Sep 17 00:00:00 2001 From: "huyanqing.16" Date: Sun, 29 Mar 2026 22:15:32 +0800 Subject: [PATCH 3/5] add github action for CI --- map.go | 1 + 1 file changed, 1 insertion(+) diff --git a/map.go b/map.go index 7deb4fd..46334bb 100644 --- a/map.go +++ b/map.go @@ -332,6 +332,7 @@ func (b *bucket2[K, V]) tryDelete(m *Map[K, V], n *inode2[K, V], key K) (done bo // available in the memory directly following the rtype value. // // tflag values must be kept in sync with copies in: +// // cmd/compile/internal/reflectdata/reflect.go // cmd/link/internal/ld/decodesym.go // runtime/type.go From a9799eb0bea3c5a38b191477290500df6f36601d Mon Sep 17 00:00:00 2001 From: "huyanqing.16" Date: Sun, 29 Mar 2026 22:19:08 +0800 Subject: [PATCH 4/5] add github action for CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa6665f..798228f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,4 +56,4 @@ jobs: run: go build -v ./... - name: Run Tests - run: go test -v -race ./... + run: go test -v ./... From 14df067a64626d36e958e96ce9f392fb1eb32374 Mon Sep 17 00:00:00 2001 From: "huyanqing.16" Date: Sun, 29 Mar 2026 22:20:49 +0800 Subject: [PATCH 5/5] add github action for CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 798228f..fa6665f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,4 +56,4 @@ jobs: run: go build -v ./... - name: Run Tests - run: go test -v ./... + run: go test -v -race ./...