runner/act
Earl Warren c1892b6398 fix!: fallback to sh if bash does not exist
It is a breaking change because it changes how the shell is
determined.

Before, if `jobs.<job_id>.container.image` is set and the shell is not
specified, it defaults to `sh` instead of `bash`.

After, regardless of `jobs.<job_id>.container.image`, if the shell is
not specified, it defaults to `bash` if available, otherwise it
defaults to `sh`.

Rework the shell integration tests:

- Remove container specific tests because the special behavior related
  to shell being set differently when a container image is present is
  removed
- Modify the defaults test case to verify the fallback logic
- Use container images from code.forgejo.org to escape rate limiting
  in the CI
- Add the missing node test
- Use
      container:
        image: code.forgejo.org/oci/node:22-bookworm
  instead of
      container: code.forgejo.org/oci/node:22-bookworm
  because it silently failed to run (with no exit code)
- Prefer `-z "${BASH}"` because `-z ${BASH+x}` reads obscure

Closes forgejo/runner#150
2025-07-12 19:01:14 +02:00
..
artifactcache Revert "fix: docker buildx cache restore not working" (#173) 2025-07-07 11:06:04 +00:00
artifacts fix: artifacts: format IP:port pair using net.JoinHostPort() 2025-06-01 12:10:47 +02:00
cacheproxy chore(refactor): add common.RandName to keep name generation DRY 2025-07-12 18:54:17 +02:00
common chore(refactor): add common.RandName to keep name generation DRY 2025-07-12 18:54:17 +02:00
container Update module github.com/docker/cli to v28 (#147) 2025-06-14 10:19:53 +00:00
exprparser chore(lint): fix lint errors 2024-12-30 21:11:02 +00:00
filecollector [RDNF #18] Meta-copy-symlinks-new-actions-cache (#2337) (#159) 2025-07-02 13:48:12 +00:00
jobparser fix(jobparser): support workflow_call.inputs and workflow_call.outputs (#70) 2025-01-29 08:38:30 +00:00
lookpath feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
model [RDNF #16] Fix for issue 2232: Many lines of "Could not find any stages to run" on run (#2272) (#157) 2025-07-02 13:53:35 +00:00
runner fix!: fallback to sh if bash does not exist 2025-07-12 19:01:14 +02:00
workflowpattern feat: workflowpattern package (#1618) 2023-02-23 18:21:08 +00:00