From 1d01aa35f73139837027e9f140939994e83e9797 Mon Sep 17 00:00:00 2001 From: Grigory Efimov Date: Mon, 11 Sep 2023 16:51:26 +0000 Subject: [PATCH] .github/workflows/coverage.yml updated golang version and refactoring --- .github/workflows/coverage.yml | 18 ++---------------- .github/workflows/release.yml | 19 +++---------------- 2 files changed, 5 insertions(+), 32 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index adba722..f8cd237 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: go-version: - - 1.21.0 + - '1.21' env: GOPRIVATE: github.com/anyproto # redis for tests @@ -30,25 +30,11 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' + check-latest: true - name: git config run: git config --global url.https://${{ secrets.ANYTYPE_PAT }}@github.com/.insteadOf https://github.com/ - # cache {{ - - id: go-cache-paths - run: | - echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_OUTPUT - echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - with: - path: | - ${{ steps.go-cache-paths.outputs.GOCACHE }} - ${{ steps.go-cache-paths.outputs.GOMODCACHE }} - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - # }} - - name: deps run: make deps CGO_ENABLED=0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 895ea22..bf16b53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: os: - linux go-version: - - 1.21.0 + - '1.21' include: - arch: amd64 rpm_arch: x86_64 @@ -59,25 +59,12 @@ jobs: - 6379:6379 steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' + check-latest: true - name: git config run: git config --global url.https://${{ secrets.ANYTYPE_PAT }}@github.com/.insteadOf https://github.com/ - # cache {{ - - id: go-cache-paths - run: | - echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_OUTPUT - echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - with: - path: | - ${{ steps.go-cache-paths.outputs.GOCACHE }} - ${{ steps.go-cache-paths.outputs.GOMODCACHE }} - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ matrix.os }}-${{ matrix.arch }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}-${{ matrix.os }}-${{ matrix.arch }}- - # }} # build {{ - name: deps