Skip to content

Commit 0733873

Browse files
github workflow changes
1 parent 2dc84e4 commit 0733873

2 files changed

Lines changed: 42 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Go CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
workflow_dispatch:
10+
inputs:
11+
skip_tests:
12+
description: 'Skip running tests'
13+
required: false
14+
default: false
15+
type: boolean
16+
triggered_user:
17+
description: 'Who triggered the workflow'
18+
required: false
19+
default: "<!here>"
20+
type: string
21+
22+
jobs:
23+
go-ci:
24+
permissions:
25+
id-token: write
26+
contents: write
27+
packages: read
28+
uses: punchh/GHA-central-workflow/.github/workflows/go-ci.yml@main
29+
30+
with:
31+
repository: ${{ github.repository }}
32+
branch: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name) }}
33+
go_version: 1.24
34+
triggered_user: ${{ github.event_name == 'workflow_dispatch' && inputs.triggered_user || '<!here>' }}
35+
skip_tests: ${{ github.event_name == 'workflow_dispatch' && inputs.skip_tests || false }}
36+
test_cases: false
37+
snyk_severity_threshold: "critical"
38+
go_build: true
39+
secrets:
40+
SVC_ACCOUNT_GITHUB_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_GITHUB_ORG_TOKEN }}
41+
SVC_ACCOUNT_SNYK_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_SNYK_ORG_TOKEN }}
42+
CAPTAIN_DEVOPS_SLACK_BOT_TOKEN: ${{ secrets.CAPTAIN_DEVOPS_SLACK_BOT_TOKEN }}

.github/workflows/go.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)