Enable staticcheck in forgejo actions #490
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#490
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:feature/482-add-staticcheck"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #482
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
6a626163f3
to811ebbe66d
811ebbe66d
to5a6e545955
5a6e545955
toa6f21cdf9a
a6f21cdf9a
toe86e3e437f
e86e3e437f
to24759e2c4a
WIP: Enable staticcheck in foregjo actionsto Enable staticcheck in forgejo actions@ -137,1 +137,4 @@
# Install staticcheck
staticcheck-install:
@go install honnef.co/go/tools/cmd/staticcheck@latest
Why did you go with a separate target for this?
It was helpful to debug. Now there are no obstacles to merge it one target. How about one target for
install&run
?Well, in some of my previous commits I made one target (install&run), there was a question whether it would work without the internet.
I mean calling
go install
directly vs Makefile target only for actions.Probably it is better your way anyway.
@ -38,6 +38,12 @@ jobs:
- name: Run tests
run: make test
- name: Install staticcheck
Can we move it from
tests
job tolint
or to a separate target? I would move to a separate job (same file, liketests
+lint
+staticcheck
-- it could be easier to parallelize this way.Moved to a separate job.
24759e2c4a
to6f9f610cb7
6f9f610cb7
tob567cb47ae
Enable staticcheck in forgejo actionsto WIP: Enable staticcheck in forgejo actionsb567cb47ae
toa92420f7a1
WIP: Enable staticcheck in forgejo actionsto Enable staticcheck in forgejo actions@ -55,0 +58,4 @@
runs-on: ubuntu-latest
strategy:
matrix:
go_versions: [ '1.19', '1.20' ]
The matrix is not needed here, we do not test staticcheck itself.
Updated.
a92420f7a1
toa0d51090a4