feat(bin): add aws-creds-to-default for setting default AWS profile f… #8
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # Pin shellcheck so CI matches local; the runner pre-installs an older one | |
| # whose extra findings (e.g. SC2015) would diverge from what you see locally. | |
| - name: install pinned shellcheck | |
| env: | |
| SHELLCHECK_VERSION: v0.11.0 | |
| run: | | |
| curl -fsSL "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar -xJ | |
| sudo install "shellcheck-${SHELLCHECK_VERSION}/shellcheck" /usr/local/bin/shellcheck | |
| rm -rf "shellcheck-${SHELLCHECK_VERSION}" | |
| shellcheck --version | |
| # ubuntu-latest ships jq and node; ensure zsh for `zsh -n`. | |
| - name: ensure zsh | |
| run: command -v zsh >/dev/null || { sudo apt-get update && sudo apt-get install -y zsh; } | |
| # Single entry point, identical to local. check.sh selects shell scripts by | |
| # shebang, so zsh files are validated with `zsh -n` and never fed to | |
| # shellcheck (which can't parse them) — no auto-discovery, no ignore lists. | |
| - run: ./scripts/check.sh lint |