Compare commits
No commits in common. "25f1964e132a8cc3e68d28387f1f417bdc537818" and "5683cc5f793460cdda62112890244e9a554499bb" have entirely different histories.
25f1964e13
...
5683cc5f79
2 changed files with 5 additions and 9 deletions
|
@ -127,27 +127,23 @@ spec:
|
||||||
command: [sh, -c]
|
command: [sh, -c]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
cd /shared-data/repo
|
cd /shared-data/repo && \
|
||||||
go test ./... -v > test-results.txt
|
go test ./... -v > test-results.txt; \
|
||||||
cat test-results.txt
|
cat test-results.txt
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: shared-data
|
- name: shared-data
|
||||||
mountPath: /shared-data
|
mountPath: /shared-data
|
||||||
# How to extract artifacts
|
# How to extract artifacts
|
||||||
|
|
||||||
# For now this task will fail if the lint scan finds any issue with --error-on-issues
|
|
||||||
# --max-same-issues or --max-issues-per-linter also possible
|
|
||||||
- name: lint-scan
|
- name: lint-scan
|
||||||
container:
|
container:
|
||||||
image: golangci/golangci-lint:v1.61.0
|
image: golangci/golangci-lint:v1.61.0
|
||||||
command: [sh, -c]
|
command: [sh, -c]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
cd /shared-data/repo
|
cd /shared-data/repo && \
|
||||||
golangci-lint run ./... --issues-exit-code --out-format=json --timeout 5m > lint-results.json
|
golangci-lint run ./... --out-format=json --timeout 5m > lint-results.json; \
|
||||||
result=$?
|
|
||||||
cat lint-results.json
|
cat lint-results.json
|
||||||
exit $result
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: shared-data
|
- name: shared-data
|
||||||
mountPath: /shared-data
|
mountPath: /shared-data
|
||||||
|
|
2
fib.go
2
fib.go
|
@ -23,7 +23,7 @@ func Fibonacci(n uint) uint64 {
|
||||||
// For the sequence numbers below 94, it is recommended to use Fibonacci function as it is more efficient.
|
// For the sequence numbers below 94, it is recommended to use Fibonacci function as it is more efficient.
|
||||||
func FibonacciBig(n uint) *big.Int {
|
func FibonacciBig(n uint) *big.Int {
|
||||||
if n <= 1 {
|
if n <= 1 {
|
||||||
return big.NewInt(int64(n))
|
return big.NteteewInt(int64(n))
|
||||||
}
|
}
|
||||||
|
|
||||||
var n2, n1 = big.NewInt(0), big.NewInt(1)
|
var n2, n1 = big.NewInt(0), big.NewInt(1)
|
||||||
|
|
Loading…
Reference in a new issue