Skip to content

chore(deps): Update CloudQuery monorepo modules #7436

chore(deps): Update CloudQuery monorepo modules

chore(deps): Update CloudQuery monorepo modules #7436

Workflow file for this run

name: CLI Workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- "cli/**"
- ".github/workflows/cli.yml"
push:
branches:
- main
paths:
- "cli/**"
- ".github/workflows/cli.yml"
env:
CLOUDQUERY_API_KEY: ${{ secrets.CLOUDQUERY_API_KEY }}
permissions:
contents: read
jobs:
cli:
timeout-minutes: 30
name: "cli"
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./cli
strategy:
fail-fast: false
matrix:
os: [ubicloud-standard-2, macos-latest, windows-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 2
- name: Set up Go 1.x
id: setup-go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: cli/go.mod
cache: false
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-test-cli-${{ hashFiles('cli/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-test-cli-
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
if: matrix.os == 'ubicloud-standard-2'
with:
version: v2.11.4
working-directory: cli
- name: Build
run: go build .
- name: Test
run: make test
- name: gen
if: matrix.os == 'ubicloud-standard-2'
run: make gen
- name: Fail if cli files are changed
if: matrix.os == 'ubicloud-standard-2'
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1)
validate-release:
timeout-minutes: 30
runs-on: ubicloud-standard-2
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
env:
CGO_ENABLED: 0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Go
id: setup-go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: cli/go.mod
cache: false
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-release-cache-cli-${{ hashFiles('cli/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-release-cache-cli-
- name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7
with:
distribution: goreleaser-pro
version: "v2.14.3"
install-only: true
- name: Run GoReleaser Dry-Run
run: goreleaser release --snapshot --clean --skip=validate,publish,sign -f ./cli/.goreleaser.yaml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}