core: Add STACKIT CLI Auth flow #3290
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: CI Workflow | |
| on: [pull_request, workflow_dispatch] | |
| jobs: | |
| main: | |
| name: CI | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| go-version: ["1.21", "1.22", "1.23"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Install STACKIT CLI | |
| run: |- | |
| OS=$(uname | tr '[:upper:]' '[:lower:]') | |
| ARCH=$(uname -m) | |
| [ "$ARCH" = "x86_64" ] && ARCH=amd64 | |
| [ "$ARCH" = "aarch64" ] && ARCH=amd64 | |
| echo Downloading stackit-cli from https://github.com/stackitcloud/stackit-cli/releases/download/v${STACKIT_CLI_VERSION}/stackit-cli_${STACKIT_CLI_VERSION}_${OS}_${ARCH}.tar.gz | |
| curl -sSfLo - https://github.com/stackitcloud/stackit-cli/releases/download/v${STACKIT_CLI_VERSION}/stackit-cli_${STACKIT_CLI_VERSION}_${OS}_${ARCH}.tar.gz | sudo tar zxvf - -C /usr/local/bin/ stackit | |
| env: | |
| STACKIT_CLI_VERSION: 0.31.0 | |
| - name: Test | |
| run: make test | |
| lint: | |
| name: Linting | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.21 | |
| - name: Install project tools and dependencies | |
| run: make project-tools | |
| - name: Lint | |
| run: | | |
| make lint | |
| scripts/check-sync-tidy.sh | |
| - name: Lint scripts | |
| run: | | |
| make lint-scripts |