Skip to content

Commit 320c175

Browse files
authored
ci: add debug workflow (#154)
This workflow prints some diagnostic information and then starts a tmate session for debugging. It can only be triggered manually.
1 parent dfca944 commit 320c175

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/debug.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: debug
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
runner:
6+
description: "Runner type to debug on"
7+
required: true
8+
default: "ubuntu-latest"
9+
type: choice
10+
options:
11+
- macos-12
12+
- ubuntu-latest
13+
permissions:
14+
contents: read
15+
jobs:
16+
golangci-lint:
17+
runs-on: ${{ inputs.runner }}
18+
steps:
19+
- name: Get rate limits
20+
run: |
21+
curl \
22+
-H "Accept: application/vnd.github+json" \
23+
-H "Authorization: ${{ github.token }}" \
24+
https://api.github.com/rate_limit | jq .
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-go@v3
27+
with:
28+
go-version-file: ./go.mod
29+
- uses: mxschmitt/action-tmate@v3
30+
with:
31+
args: --timeout=10m
32+
limit-access-to-actor: true

0 commit comments

Comments
 (0)