Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0fd84deb
Commit
0fd84deb
authored
Oct 07, 2022
by
jongwooo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use setup-go action to cache dependencies
Signed-off-by:
jongwooo
<
han980817@gmail.com
>
parent
b44d81a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
integration.yaml
.github/workflows/integration.yaml
+10
-5
unitcoverage.yaml
.github/workflows/unitcoverage.yaml
+10
-5
No files found.
.github/workflows/integration.yaml
View file @
0fd84deb
...
...
@@ -44,14 +44,19 @@ jobs:
runs-on
:
ubuntu-20.04
timeout-minutes
:
30
steps
:
-
name
:
Install Go
uses
:
actions/setup-go@v2
with
:
go-version
:
'
1.19.1'
-
name
:
Checkout
uses
:
actions/checkout@v
2
uses
:
actions/checkout@v
3
with
:
fetch-depth
:
1
-
name
:
Install Go
uses
:
actions/setup-go@v3
with
:
go-version
:
'
1.19.1'
check-latest
:
true
cache
:
true
cache-dependency-path
:
|
**/go.sum
**/go.mod
-
name
:
"
Download
k3s
binary"
uses
:
actions/download-artifact@v2
with
:
...
...
.github/workflows/unitcoverage.yaml
View file @
0fd84deb
...
...
@@ -30,14 +30,19 @@ jobs:
os
:
[
ubuntu-18.04
,
ubuntu-20.04
]
timeout-minutes
:
20
steps
:
-
name
:
Install Go
uses
:
actions/setup-go@v2
with
:
go-version
:
'
1.19.1'
-
name
:
Checkout
uses
:
actions/checkout@v
2
uses
:
actions/checkout@v
3
with
:
fetch-depth
:
1
-
name
:
Install Go
uses
:
actions/setup-go@v3
with
:
go-version
:
'
1.19.1'
check-latest
:
true
cache
:
true
cache-dependency-path
:
|
**/go.sum
**/go.mod
-
name
:
Run Unit Tests
run
:
|
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
...
...
Write
Preview
Markdown
is supported
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