From 7e49f4718000e0903b0c9afade8ad5d51cc8cc73 Mon Sep 17 00:00:00 2001 From: Guangming Luo Date: Tue, 19 Mar 2024 19:19:43 +0800 Subject: [PATCH] chore: update template --- .github/workflows/pr-check.yml | 6 +++--- .github/workflows/tests.yml | 10 +--------- .golangci.yaml | 1 + 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 8cb7338..17c48f7 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - name: Check License Header - uses: apache/skywalking-eyes/header@main + uses: apache/skywalking-eyes/header@0.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 - uses: actions/cache@v3 with: @@ -51,7 +51,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 - name: Golangci Lint # https://golangci-lint.run/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0c74d2d..c8bc75a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: unit-benchmark-test: strategy: matrix: - go: [ 1.17, 1.18, 1.19 ] + go: [ 1.18, 1.19, 1.20 ] os: [ X64, ARM64 ] runs-on: ${{ matrix.os }} steps: @@ -17,14 +17,6 @@ jobs: with: go-version: ${{ matrix.go }} - # block scenario, comment temporarily -# - uses: actions/cache@v3 -# with: -# path: ~/go/pkg/mod -# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} -# restore-keys: | -# ${{ runner.os }}-go- - - name: Unit Test run: go test -race -covermode=atomic -coverprofile=coverage.out ./... diff --git a/.golangci.yaml b/.golangci.yaml index c7358bb..71405b0 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -25,6 +25,7 @@ linters-settings: linters: enable: - gofumpt + - goimports - gofmt disable: - errcheck