chore: wrap CLI flags in backticks in Mintlify doc output (#892) #186
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: Install Script Tests | |
| on: | |
| push: | |
| paths: | |
| - 'install-cli.sh' | |
| - '.github/workflows/install-script-tests.yml' | |
| - 'bin/test_install_script.sh' | |
| - 'bin/test_install_script_over_homebrew.sh' | |
| - 'npm/**' | |
| - '.goreleaser.yml' | |
| - 'scripts/npm-publish.sh' | |
| pull_request: | |
| paths: | |
| - 'install-cli.sh' | |
| - '.github/workflows/install-script-tests.yml' | |
| - 'bin/test_install_script.sh' | |
| - 'bin/test_install_script_over_homebrew.sh' | |
| - 'npm/**' | |
| - '.goreleaser.yml' | |
| - 'scripts/npm-publish.sh' | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| jobs: | |
| test-script: | |
| name: Test Bash Script on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Run install script test | |
| shell: bash | |
| run: | | |
| chmod +x install-cli.sh | |
| bash bin/test_install_script.sh --token ${{ secrets.GITHUB_TOKEN }} | |
| mac-homebrew: | |
| name: Test Homebrew Installation on macOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Run Homebrew install | |
| shell: bash | |
| run: brew install kosli-cli | |
| - name: Verify Homebrew installation | |
| shell: bash | |
| run: command -v kosli | |
| - name: Run install script test | |
| shell: bash | |
| run: | | |
| chmod +x install-cli.sh | |
| bash bin/test_install_script_over_homebrew.sh --token ${{ secrets.GITHUB_TOKEN }} | |
| # Note: this job installs from the public npm registry, so on push/PR | |
| # it tests the currently published version — not the code being changed. | |
| # That still catches regressions. The release trigger is what tests new releases. | |
| test-npm: | |
| name: Test npm install on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest # linux/x64 | |
| - ubuntu-24.04-arm # linux/arm64 | |
| - macos-latest # darwin/arm64 | |
| - windows-latest # win32/x64 | |
| - windows-11-arm # win32/arm64 | |
| steps: | |
| - name: Install @kosli/cli via npm | |
| shell: bash | |
| run: | | |
| TAG="${{ github.event.release.tag_name }}" | |
| if [[ "${{ github.event_name }}" == "release" && "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| npm install -g @kosli/cli@latest | |
| else | |
| npm install -g @kosli/cli@snapshot | |
| fi | |
| - name: Verify kosli binary works | |
| shell: bash | |
| run: kosli version |