diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 618c858..65952ca 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -20,14 +20,22 @@ jobs: tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz rm -rf go1.23.1.linux-amd64.tar.gz echo "PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV - - name: Sanity Check - run: | - ls -lha - ls -lha ~/.ssh - whoami - echo $PATH - name: Display Go version run: go version + - id: go-cache-paths + run: | + echo "::set-output name=go-build::$(go env GOCACHE)" + echo "::set-output name=go-mod::$(go env GOMODCACHE)" + - name: Go Build Cache + uses: https://gitea.com/actions/cache@v2 + with: + path: ${{ steps.go-cache-paths.outputs.go-build }} + key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} + - name: Go Mod Cache + uses: https://gitea.com/actions/cache@v2 + with: + path: ${{ steps.go-cache-paths.outputs.go-mod }} + key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} - name: Prepare run: | go env -w GO111MODULE=on