Skip to content

Commit 0f45357

Browse files
authored
chore: upgrade go and add go cache workflow (#1341)
1 parent d805f0e commit 0f45357

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
3+
name: Go Mod Cache
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- go.mod
11+
- go.sum
12+
schedule:
13+
- cron: 0 0 * * 0
14+
workflow_dispatch:
15+
16+
jobs:
17+
go-cache:
18+
name: Go Module Cache
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
25+
26+
- name: Setup Go
27+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
28+
with:
29+
go-version-file: go.mod
30+
31+
- name: Download Go Modules
32+
run: go mod download

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/home-operations/containers
22

3-
go 1.25.1
3+
go 1.26.2
44

55
require (
66
github.com/docker/go-connections v0.6.0

0 commit comments

Comments
 (0)