Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
66d429de
Unverified
Commit
66d429de
authored
4 years ago
by
Psnail
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ci
parent
5912f600
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/go.yml
+23
-23
23 additions, 23 deletions
.github/workflows/go.yml
with
23 additions
and
23 deletions
.github/workflows/go.yml
+
23
−
23
View file @
66d429de
...
...
@@ -27,30 +27,30 @@ jobs:
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
#
- name: Get dependencies
#
run: |
#
go get -v -t -d ./...
#
if [ -f Gopkg.toml ]; then
#
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
#
dep ensure
#
fi
-
name
:
Get dependencies
run
:
|
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
#
- name: License Check
#
run: |
#
go fmt ./... && [[ -z `git status -s` ]]
#
sh before_validate_license.sh
#
chmod u+x /tmp/tools/license/license-header-checker
#
/tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
-
name
:
License Check
run
:
|
go fmt ./... && [[ -z `git status -s` ]]
sh before_validate_license.sh
chmod u+x /tmp/tools/license/license-header-checker
/tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
#
- name: Test
#
run: |
#
chmod u+x before_ut.sh && ./before_ut.sh
#
go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic
#
export COMPOSE_INTERACTIVE_NO_CLI=1
#
chmod +x integrate_test.sh && ./integrate_test.sh
-
name
:
Test
run
:
|
chmod u+x before_ut.sh && ./before_ut.sh
go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic
export COMPOSE_INTERACTIVE_NO_CLI=1
chmod +x integrate_test.sh && ./integrate_test.sh
#
- name: Coverage
#
run: bash <(curl -s https://codecov.io/bash)
-
name
:
Coverage
run
:
bash <(curl -s https://codecov.io/bash)
-
name
:
DingTalk Message Notify
# You may pin to the exact commit or the version.
...
...
@@ -58,8 +58,8 @@ jobs:
uses
:
zcong1993/actions-ding@v3.0.1
with
:
# DingDing bot token
dingToken
:
ff0ff436a50c2aa41b7e3c92a0b1f68c302bd9873370aea0da59579ff23461f5
secret
:
SEC
ffddfca8e454f238ec528532cada0e0d4d9c7f514bc171bdeddc39d164da6145
dingToken
:
6374f1bf8d4f23cde81d4a4b8c1f0bc98cc92b5151ca938ab938d3d7f4230fc4
secret
:
SEC
a98677289194bb0e5caec3051301d06515750ff1bd2f932a4704298afb2e0ae6
# Post Body to send
body
:
|
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment