mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 05:42:15 +08:00
Bumps the github-actions-dependencies group with 3 updates: [actions/setup-node](https://github.com/actions/setup-node), [actions/setup-go](https://github.com/actions/setup-go) and [actions/github-script](https://github.com/actions/github-script). Updates `actions/setup-node` from 4 to 5 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) Updates `actions/setup-go` from 5 to 6 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v5...v6) Updates `actions/github-script` from 7 to 8 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/setup-go dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
name: cli/ubi CI
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'cli/**'
|
|
- 'bin/ubi'
|
|
- 'spec/cli_spec.rb'
|
|
- '.github/workflows/cli-ci.yml'
|
|
- '.github/actions/setup-clover/action.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'cli/**'
|
|
- 'bin/ubi'
|
|
- 'spec/cli_spec.rb'
|
|
- '.github/workflows/cli-ci.yml'
|
|
- '.github/actions/setup-clover/action.yml'
|
|
|
|
jobs:
|
|
cli-ci:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runs-on: [ubicloud, ubicloud-arm]
|
|
name: cli/ubi CI - ${{matrix.runs-on}}
|
|
runs-on: ${{matrix.runs-on}}
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up Clover
|
|
uses: ./.github/actions/setup-clover
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'cli/go.mod'
|
|
|
|
- name: Build cli/ubi
|
|
run: bundle exec rake ubi
|
|
|
|
- name: Run cli/ubi tests
|
|
env:
|
|
UBI_CMD: ./cli/ubi
|
|
run: bundle exec rspec spec/cli_spec.rb
|
|
|
|
- name: Run go fmt and check it makes no changes
|
|
run: "cd cli && go fmt && git diff --stat --exit-code"
|
|
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.1.5
|
|
working-directory: cli
|