CI [skip appveyor] #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Shellcheck linting | |
| # This is required | |
| on: | |
| push: | |
| jobs: | |
| shellcheck: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: registry.gitlab.com/pipeline-components/shellcheck:latest | |
| steps: | |
| - name: Preinstall | |
| run: | | |
| apk add --no-cache git jq | |
| git config --global --add safe.directory '*' | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 # This step will also run inside the container | |
| with: | |
| submodules: false | |
| - name: Run ShellCheck | |
| run: "${GITHUB_WORKSPACE}/.github/shell_check.bsh" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ShellCheck-results | |
| path: /tmp/results/shellcheck.json |