Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Job Queues
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Services
Job Queues
Commits
a8ccba55
Verified
Commit
a8ccba55
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: fix ci tests
parent
0d2bc9c9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-0
5 additions, 0 deletions
README.md
devenv.nix
+4
-21
4 additions, 21 deletions
devenv.nix
gofiles.zip
+0
-0
0 additions, 0 deletions
gofiles.zip
with
9 additions
and
21 deletions
README.md
+
5
−
0
View file @
a8ccba55
...
@@ -51,6 +51,11 @@ func main() {
...
@@ -51,6 +51,11 @@ func main() {
```
```
### Job
## Tests
## Tests
Run tests using:
Run tests using:
...
...
This diff is collapsed.
Click to expand it.
devenv.nix
+
4
−
21
View file @
a8ccba55
...
@@ -131,29 +131,12 @@ EOF
...
@@ -131,29 +131,12 @@ EOF
# You can use it to build the app
# You can use it to build the app
scripts
.
test-lib
.
exec
=
''
scripts
.
test-lib
.
exec
=
''
#!
${
pkgs
.
bash
}
/bin/bash
#!
${
pkgs
.
bash
}
/bin/bash
#set -euo pipefail
set -x
set -x
PATH="
''$
{PATH}":
${
pkgs
.
coreutils
}
/bin
PATH="
''$
{PATH}":
${
pkgs
.
findutils
}
/bin
PATH="
''$
{PATH}":
${
pkgs
.
jq
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
rsync
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
bash
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
curl
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
moreutils
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
gnutar
}
/bin
PATH="
''$
{PATH}":
${
pkgs
.
gzip
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
procps
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
exa
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
git
}
/bin/
PATH="
''$
{PATH}":
${
pkgs
.
gnugrep
}
/bin/
PATH="
''$
{PATH}":
${
inputs
.
version
.
defaultPackage
.
"
${
builtins
.
currentSystem
}
"
}
/bin/
export PATH
task test
${
pkgs
.
gosec
}
/bin/gosec
${
config
.
devenv
.
root
}
${
pkgs
.
go
}
/bin/go test -tags=runOnTask -cover -v
${
config
.
devenv
.
root
}
${
pkgs
.
go
}
/bin/go test -tags=runOnTask -bench -v
${
config
.
devenv
.
root
}
${
pkgs
.
go
}
/bin/go test -tags=runOnTask -race -v
${
config
.
devenv
.
root
}
''
;
''
;
...
...
This diff is collapsed.
Click to expand it.
gofiles.zip
0 → 100644
+
0
−
0
View file @
a8ccba55
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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