feat: add node as shell type #120

Merged
earl-warren merged 2 commits from Maks1mS/act:feat/node-as-shell-type into main 2025-05-26 05:13:07 +00:00
Member
No description provided.
feat: add node as shell type
All checks were successful
/ cascade (pull_request_target) Successful in 34m29s
checks / unit (pull_request) Successful in 1m11s
checks / integration (pull_request) Successful in 25s
07a5358b47
Contributor

cascading-pr updated at forgejo/runner#543

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/543
earl-warren changed title from feat: add node as shell type to feat: add node as shell type [skip cascade] 2025-04-18 18:59:18 +00:00
Contributor

This is looking good 👍 Can you please confirm that the test is run in the CI?

This is looking good 👍 Can you please confirm that the test is run in the CI?
Contributor
https://code.forgejo.org/forgejo/act/actions/runs/616/jobs/0#jobstep-10-311 it should be around here but I don't see it. What am I missing?
Author
Member

@earl-warren wrote in #120 (comment):

https://code.forgejo.org/forgejo/act/actions/runs/616/jobs/0#jobstep-10-311 it should be around here but I don't see it. What am I missing?

It looks like I have to fix it here.

func TestStep_ShellCommand(t *testing.T) {
tests := []struct {
shell string
want string
}{
{"pwsh -v '. {0}'", "pwsh -v '. {0}'"},
{"pwsh", "pwsh -command . '{0}'"},
{"powershell", "powershell -command . '{0}'"},
}
for _, tt := range tests {
t.Run(tt.shell, func(t *testing.T) {
got := (&Step{Shell: tt.shell}).ShellCommand()
assert.Equal(t, got, tt.want)
})
}
}

I acted by analogy with the python shell, but it's not here. I can add it too.

@earl-warren wrote in https://code.forgejo.org/forgejo/act/pulls/120#issuecomment-38002: > https://code.forgejo.org/forgejo/act/actions/runs/616/jobs/0#jobstep-10-311 it should be around here but I don't see it. What am I missing? It looks like I have to fix it here. https://code.forgejo.org/forgejo/act/src/commit/af28212d7052afec0bf70d3c84da54c3fcebb4e9/pkg/model/workflow_test.go#L505-L520 I acted by analogy with the python shell, but it's not here. I can add it too.
tests: add node and python in TestStep_ShellCommand
Some checks failed
checks / unit (pull_request) Successful in 50s
checks / integration (pull_request) Successful in 24s
/ cascade (pull_request_target) Failing after 24s
4d3fcbc4c2
viceice approved these changes 2025-05-12 09:34:11 +00:00
limiting-factor changed title from feat: add node as shell type [skip cascade] to feat: add node as shell type 2025-05-13 07:21:20 +00:00
The test ran successfully https://code.forgejo.org/forgejo/act/actions/runs/618/jobs/0#jobstep-10-315
earl-warren deleted branch feat/node-as-shell-type 2025-05-26 05:13:08 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
5 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/act!120
No description provided.