diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml new file mode 100644 index 000000000..55e207999 --- /dev/null +++ b/.github/workflows/cache.yaml @@ -0,0 +1,22 @@ +name: Cache on default branch +on: push + +jobs: + go_cache: + name: Install And Cache Go Dependencies and Build Artifacts + runs-on: ubuntu-22.04 + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-tags: true + fetch-depth: 0 + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' + + - name: Build + run: go build ./...