From 8eb4ee1fcecf84b48c6989229a1fd706b424c1c8 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 14 Dec 2024 22:58:19 -0500 Subject: [PATCH] update CI --- .github/workflows/go.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 08a05b9..6f34344 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,27 +23,20 @@ jobs: name: Test strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x] + go-version: [ 1.22.x, 1.23.x ] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: + - name: Checkout code + uses: actions/checkout@v3 - name: Install Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Run unit tests - run: go test -v -race -coverprofile=coverage -covermode=atomic + - name: Run tests with coverage + run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./... - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v1.0.6 + uses: codecov/codecov-action@v1.5.0 with: file: ./coverage flags: unittests - - name: Cache downloaded modules - uses: actions/cache@v1 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-