Test the installation script #20
Workflow file for this run
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: Installer CI | |
| run-name: Test the installation script | |
| on: | |
| pull_request: | |
| paths: | |
| - 'scripts/install.sh' | |
| push: | |
| paths: | |
| - 'scripts/install.sh' | |
| schedule: | |
| - cron: '0 2 * * 1' # weekly on Monday at 02:00 UTC | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2 | |
| - name: Run ShellCheck on install.sh | |
| run: shellcheck scripts/install.sh | |
| smoke-test-on-dev: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install dependencies | |
| uses: ./.github/actions/setup-runner | |
| - name: Build a single provider | |
| run: | | |
| BUILD_ARGS=(--build-arg "INSTALL_MODE=editable" --build-arg "DISTRO_NAME=starter") | |
| if [ -n "${UV_EXTRA_INDEX_URL:-}" ]; then | |
| BUILD_ARGS+=(--build-arg "UV_EXTRA_INDEX_URL=$UV_EXTRA_INDEX_URL") | |
| fi | |
| if [ -n "${UV_INDEX_STRATEGY:-}" ]; then | |
| BUILD_ARGS+=(--build-arg "UV_INDEX_STRATEGY=$UV_INDEX_STRATEGY") | |
| fi | |
| docker build . \ | |
| -f containers/Containerfile \ | |
| "${BUILD_ARGS[@]}" \ | |
| --tag ogx:starter-ci | |
| - name: Run installer end-to-end | |
| run: | | |
| IMAGE_ID=$(docker images --format "{{.Repository}}:{{.Tag}}" | head -n 1) | |
| ./scripts/install.sh --image "$IMAGE_ID" |