FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackit-cli/.github/workflows/ci.yaml at main · stackitcloud/stackit-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackitcloud
/
stackit-cli
Public
Notifications
You must be signed in to change notification settings
Fork
49
Star
163
Code
Issues
11
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
stackit-cli
/
.github
/
workflows
/
ci.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
72 lines (61 loc) · 1.9 KB
Breadcrumbs
stackit-cli
/
.github
/
workflows
/
ci.yaml
Copy path
File metadata and controls
72 lines (61 loc) · 1.9 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name
:
CI
on
:
pull_request
:
workflow_dispatch
:
push
:
branches
:
-
main
env
:
CODE_COVERAGE_FILE_NAME
:
"
coverage.out
"
#
must be the same as in Makefile
CODE_COVERAGE_ARTIFACT_NAME
:
"
code-coverage
"
jobs
:
main
:
name
:
CI
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v7.0.1
-
name
:
Install go
uses
:
actions/setup-go@v7.0.0
with
:
go-version-file
:
"
go.mod
"
cache
:
true
-
name
:
"
Ensure docs are up-to-date
"
if
:
${{ github.event_name == 'pull_request' }}
run
:
./scripts/check-docs.sh
-
name
:
Lint
run
:
make lint
-
name
:
Test
run
:
make test
-
name
:
Archive code coverage results
uses
:
actions/upload-artifact@v7
with
:
name
:
${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
path
:
${{ env.CODE_COVERAGE_FILE_NAME }}
config
:
name
:
Check GoReleaser config
if
:
github.event_name == 'pull_request'
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v7.0.1
-
name
:
Check GoReleaser
uses
:
goreleaser/goreleaser-action@v7.2.3
with
:
args
:
check
code_coverage
:
name
:
"
Code coverage report
"
if
:
github.event_name == 'pull_request'
#
Do not run when workflow is triggered by push to main branch
runs-on
:
ubuntu-latest
needs
:
main
permissions
:
contents
:
read
actions
:
read
#
to download code coverage results from "main" job
pull-requests
:
write
#
write permission needed to comment on PR
steps
:
-
name
:
Check new code coverage
uses
:
fgrosse/go-coverage-report@v1.3.1
continue-on-error
:
true
#
Add this line to prevent pipeline failures in forks
with
:
coverage-artifact-name
:
${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
coverage-file-name
:
${{ env.CODE_COVERAGE_FILE_NAME }}
Back
|
FazBrowse Home
|
New Git URL