-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (46 loc) · 1.16 KB
/
go.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test Go caching
on:
push:
branches:
- main
pull_request:
branches:
- "*"
schedule:
- cron: "10 */6 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
go:
strategy:
matrix:
go-version: [1.23.x]
runs-on:
- namespace-profile-e2e-small
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false
- name: Check existing directories
run: |
ls -al /home/runner/go
- name: Setup Go cache
uses: ./ # Uses an action in the root directory
with:
cache: go
- name: Run a Go build
run: |
go install namespacelabs.dev/foundation/cmd/ns@latest
- name: Print cache metadata file
run: cat /cache/.ns/cache-metadata.json
- name: Breakpoint on failure
if: failure() && github.ref_name == 'main'
uses: namespacelabs/breakpoint-action@v0
with:
duration: 15m
authorized-users: edganiukov,hugosantos,n-g,htr,nichtverstehen,gmichelo