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
922c5a6b
Unverified
Commit
922c5a6b
authored
Feb 29, 2024
by
Derek Nola
Committed by
GitHub
Feb 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unit Testing Matrix and Actions bump (#9479)
cache is now on by default Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
57e11c72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
unitcoverage.yaml
.github/workflows/unitcoverage.yaml
+6
-11
No files found.
.github/workflows/unitcoverage.yaml
View file @
922c5a6b
...
@@ -28,10 +28,7 @@ permissions:
...
@@ -28,10 +28,7 @@ permissions:
jobs
:
jobs
:
test
:
test
:
name
:
Unit Tests
name
:
Unit Tests
runs-on
:
${{ matrix.os }}
runs-on
:
ubuntu-latest
strategy
:
matrix
:
os
:
[
ubuntu-20.04
,
ubuntu-22.04
]
timeout-minutes
:
20
timeout-minutes
:
20
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
@@ -41,23 +38,21 @@ jobs:
...
@@ -41,23 +38,21 @@ jobs:
-
name
:
Install Go
-
name
:
Install Go
uses
:
actions/setup-go@v5
uses
:
actions/setup-go@v5
with
:
with
:
go-version
:
'
1.21.7'
go-version
-file
:
go.mod
# Just use whatever version is in the go.mod file
check-latest
:
true
check-latest
:
true
cache
:
true
cache-dependency-path
:
|
**/go.sum
**/go.mod
-
name
:
Run Unit Tests
-
name
:
Run Unit Tests
run
:
|
run
:
|
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
go tool cover -func coverage.out
go tool cover -func coverage.out
-
name
:
On Failure, Launch Debug Session
-
name
:
On Failure, Launch Debug Session
if
:
${{ failure() }}
if
:
${{ failure() }}
uses
:
mxschmitt/action-tmate@v3
uses
:
lhotari/action-upterm@v1
timeout-minutes
:
5
with
:
wait-timeout-minutes
:
5
-
name
:
Upload Results To Codecov
-
name
:
Upload Results To Codecov
uses
:
codecov/codecov-action@v4
uses
:
codecov/codecov-action@v4
with
:
with
:
token
:
${{ secrets.CODECOV_TOKEN }}
files
:
./coverage.out
files
:
./coverage.out
flags
:
unittests
# optional
flags
:
unittests
# optional
verbose
:
true
# optional (default = false)
verbose
:
true
# optional (default = false)
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