Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin Ubuntu version in github action to 22.04
This week, Github changed the `ubuntu-latest` to Ubuntu 24. This broken our linting action where shellcheck keep on following with the following error: ``` Run npm run shellcheck > [email protected] shellcheck > npx shellcheck ./script/**/*[^utils] ./script/utils/** [INFO ] ShellCheck binary not found or invalid, downloading to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck' [INFO ] Downloading 'https://github.com/vscode-shellcheck/shellcheck-binaries/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.gz' to '/tmp/uNDjpK/shellcheck.download' [INFO ] Extracting '/tmp/uNDjpK/shellcheck.download' to '/tmp/uNDjpK' [INFO ] Copying '/tmp/uNDjpK/shellcheck' to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck' [INFO ] ShellCheck binary successfully downloaded to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck' ./script/**/*[^utils]: ./script/**/*[^utils]: openBinaryFile: does not exist (No such file or directory) Error: Process completed with exit code 2. ``` See: https://github.com/ministryofjustice/hmpps-temporary-accommodation-ui/actions/runs/12350577855/job/34517811023 We have seen this error before and it was an issue with github action runners. I noticed that the ubuntu version has been bumped and its most likely why shellcheck has broken again. All the jobs also had the following warning from Github: ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see actions/runner-images#10636
- Loading branch information