Skip to content

chore: upgrade go and add go cache workflow (#1341) #1

chore: upgrade go and add go cache workflow (#1341)

chore: upgrade go and add go cache workflow (#1341) #1

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Go Mod Cache
on:
push:
branches:
- main
paths:
- go.mod
- go.sum
schedule:
- cron: 0 0 * * 0
workflow_dispatch:
jobs:
go-cache:
name: Go Module Cache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Download Go Modules
run: go mod download