feat: add GitHub Actions workflows for CI/CD #1
ci.yml
on: push
Lint
1m 30s
Security Scan
4s
Matrix: Test
Annotations
14 errors and 2 warnings
|
Security Scan
Unable to resolve action securecodewarrior/github-action-gosec, repository not found
|
|
Test (1.20)
Process completed with exit code 1.
|
|
Test (1.21)
The operation was canceled.
|
|
Test (1.21)
The strategy configuration was canceled because "test._1_20" failed
|
|
Lint:
internal/handlers/storage.go#L146
cyclomatic complexity 22 of func `(*StorageHandler).UpdateStorageConfig` is high (> 15) (gocyclo)
|
|
Lint:
internal/config/config.go#L320
cyclomatic complexity 40 of func `(*Config).LoadFromDatabase` is high (> 15) (gocyclo)
|
|
Lint:
internal/storage/local_strategy.go#L97
string `/share/download` has 3 occurrences, make it a constant (goconst)
|
|
Lint:
internal/handlers/storage.go#L186
Error return value of `sh.storageManager.ReconfigureWebDAV` is not checked (errcheck)
|
|
Lint:
internal/handlers/share.go#L140
Error return value of `h.service.UpdateFileUsage` is not checked (errcheck)
|
|
Lint:
internal/services/share_test.go#L21
Error return value of `db.AutoMigrate` is not checked (errcheck)
|
|
Lint:
internal/services/share.go#L143
Error return value of `rand.Read` is not checked (errcheck)
|
|
Lint:
internal/tasks/tasks.go#L39
Error return value of `tm.cron.AddFunc` is not checked (errcheck)
|
|
Lint:
internal/tasks/tasks.go#L36
Error return value of `tm.cron.AddFunc` is not checked (errcheck)
|
|
Lint:
internal/storage/local_strategy.go#L25
Error return value of `os.MkdirAll` is not checked (errcheck)
|
|
Lint
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0KIKyaAAAAACztwq05XRxS4cKYcXcLw6oQlkzRURHRTA0MTIARWRnZQ==
|
|
Lint
Failed to restore: Cache service responded with 400
|