Skip to content

Latest commit

Β 

History

History
61 lines (44 loc) Β· 1.49 KB

File metadata and controls

61 lines (44 loc) Β· 1.49 KB

πŸ› οΈ setup-cli-action

GitHub Action to set up the Humanitec CLI.

πŸš€ Usage

name: ci

on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Humanitec CLI
        uses: humanitec/setup-cli-action@v1
        with:
          # Check https://github.com/humanitec/cli/releases for available versions
          version: '0.17.0' # Can be an exact version or a semver range https://github.com/npm/node-semver#ranges
          token: ${{ secrets.GITHUB_TOKEN }} # Required if a range is specified

      - run: humctl version

πŸ§‘β€πŸ’» Collaboration

Requirements:

mise install
npm ci

Testing:

npm test              # run jest tests
npm run lint          # eslint
npm run format:write  # prettier write

Bundle:

dist/ is committed. Run npm run bundle and commit dist/ before pushing - the check-dist workflow fails if dist/ is stale.

# format + build dist/index.js (esbuild)
npm run bundle