Skip to content

Commit

Permalink
internal/ci: simplify trybot workflow
Browse files Browse the repository at this point in the history
We don't need to annotate each step with:

    githubactions.#Step

within the workflow definition itself: that fact is already implied by
the "surrounding" workflow schema.

Instead, leave the annotation in places where we are declaring helper
values.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: I59ee13266d1a907c2eab78ccf8f7311df878ddd4
Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204444
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
myitcv committed Nov 22, 2024
1 parent a3a683b commit 1bd98d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,27 @@ workflows: trybot: _repo.bashWorkflow & {

_centralRegistryLogin,

githubactions.#Step & {
{
name: "Verify"
run: "go mod verify"
},
githubactions.#Step & {
{
name: "Generate"
run: "go generate ./..."
},
githubactions.#Step & {
{
name: "Test"
run: "go test ./..."
},
githubactions.#Step & {
{
name: "Race test"
run: "go test -race ./..."
},
githubactions.#Step & {
{
name: "staticcheck"
run: "go run honnef.co/go/tools/cmd/[email protected] ./..."
},
githubactions.#Step & {
{
name: "Tidy"
run: "go mod tidy"
},
Expand Down

0 comments on commit 1bd98d4

Please sign in to comment.