Skip to content

feat: add tests for controller #1747

feat: add tests for controller

feat: add tests for controller #1747

Triggered via pull request September 22, 2024 04:09
Status Failure
Total duration 5m 28s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

36 errors and 5 warnings
Spectral
No ruleset has been found. Please provide a ruleset using the spectral_ruleset option, or make sure your ruleset file matches .?spectral.(js|ya?ml|json)
Lint: wire_gen.go#L12
could not import github.com/traPtitech/anke-to/router (-: # github.com/traPtitech/anke-to/router
Lint: router/questionnaires.go#L123
not enough arguments in call to q.IQuestionnaire.GetQuestionnaires
Lint: router/questionnaires.go#L253
assignment mismatch: 5 variables but q.GetQuestionnaireInfo returns 7 values
Lint: router/results.go#L36
not enough arguments in call to r.GetRespondentDetails
Lint: controller/questionnaire_test.go#L33
undefined: ctx
Lint: controller/questionnaire_test.go#L60
undefined: ctx
Lint: controller/questionnaire_test.go#L113
undefined: ctx
Lint: controller/questionnaire_test.go#L150
undefined: ctx
Lint: controller/questionnaire_test.go#L176
undefined: ctx
Lint: controller/questionnaire_test.go#L213
undefined: ctx
Build: tuning/main.go#L12
missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by github.com/traPtitech/anke-to/tuning); to add:
Build
Process completed with exit code 1.
Test
missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by golang.org/x/tools/go/packages); to add:
Test
Process completed with exit code 1.
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, reviewdog/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Mod
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2