Bumps the github-actions-dependencies group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/download-artifact](https://github.com/actions/download-artifact) and [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action). Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) Updates `actions/download-artifact` from 4 to 5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) Updates `slackapi/slack-github-action` from 2.1.0 to 2.1.1 - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](https://github.com/slackapi/slack-github-action/compare/v2.1.0...v2.1.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: slackapi/slack-github-action dependency-version: 2.1.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
62 lines
1.3 KiB
YAML
62 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@v5
|
|
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
|