Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
e4ff4a07
Unverified
Commit
e4ff4a07
authored
3 years ago
by
Igor Gov
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Run CI checks in parallel (#210)
parent
f9677dba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/validation.yaml
+84
-0
.github/workflows/validation.yaml
Makefile
+3
-1
Makefile
with
87 additions
and
1 deletion
+87
-1
.github/workflows/
test
.yaml
→
.github/workflows/
validation
.yaml
+
84
-
0
View file @
e4ff4a07
name
:
test
name
:
Validations
on
:
pull_request
:
branches
:
...
...
@@ -9,15 +9,14 @@ on:
-
'
develop'
-
'
main'
jobs
:
build
:
name
:
Build
build
-cli
:
name
:
Build
CLI
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Go
1.16
uses
:
actions/setup-go@v2
with
:
go-version
:
'
^1.16'
-
run
:
go version
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
...
...
@@ -25,6 +24,18 @@ jobs:
-
name
:
Build CLI
run
:
make cli
build-agent
:
name
:
Build Agent
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Go
1.16
uses
:
actions/setup-go@v2
with
:
go-version
:
'
^1.16'
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
-
shell
:
bash
run
:
|
sudo apt-get install libpcap-dev
...
...
@@ -32,8 +43,42 @@ jobs:
-
name
:
Build Agent
run
:
make agent
run-tests-cli
:
name
:
Run CLI tests
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Go
1.16
uses
:
actions/setup-go@v2
with
:
go-version
:
'
^1.16'
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
-
name
:
Test
run
:
make test-cli
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@v2
run-tests-agent
:
name
:
Run Agent tests
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Go
1.16
uses
:
actions/setup-go@v2
with
:
go-version
:
'
^1.16'
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
-
shell
:
bash
run
:
|
sudo apt-get install libpcap-dev
-
name
:
Test
run
:
make test
run
:
make test
-agent
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@v2
This diff is collapsed.
Click to expand it.
Makefile
+
3
-
1
View file @
e4ff4a07
...
...
@@ -65,6 +65,8 @@ clean-cli: ## Clean CLI.
clean-docker
:
@
(
echo
"DOCKER cleanup - NOT IMPLEMENTED YET "
)
test
:
##
Run tests.
test
-cli
:
##
Run tests.
@
echo
"running cli tests"
;
cd
cli
&&
$(MAKE)
test
test-agent
:
##
Run tests.
@
echo
"running agent tests"
;
cd
agent
&&
$(MAKE)
test
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment