From 6a5f6f04606991b31c07c576bfd0cbc66a517801 Mon Sep 17 00:00:00 2001 From: Bojan Zivanovic Date: Thu, 31 Oct 2024 23:17:56 +0100 Subject: [PATCH] Update CI. Removed actions/cache since the package has no dependencies, therefore nothing to cache. --- .github/workflows/build.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d18eea..3edc9c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.23.x - name: Install tools run: | @@ -17,13 +17,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-build- - - name: Verify code formatting run: | test -z "$(set -o pipefail && goimports -l -d . | tee goimports.out)" || { cat goimports.out && exit 1; } @@ -36,25 +29,18 @@ jobs: test: strategy: matrix: - go: ['1.18', '1.19', '1.20'] + go: ['1.23', '1.22', '1.21'] name: test @ Go ${{ matrix.go }} runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: Checkout code uses: actions/checkout@v4 - - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-build- - - name: Test run: go test -v -coverprofile=profile.cov ./...