Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add spotinfo recommend command — workload-aware instance decision engine #29

feat: add spotinfo recommend command — workload-aware instance decision engine

feat: add spotinfo recommend command — workload-aware instance decision engine #29

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download
- name: Update embedded data
run: make update-data update-price
- name: Run tests with coverage
run: go test -cover -v ./...
- name: Run golangci-lint
run: make lint
- name: Build binary
run: make build
build-matrix:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: test
if: github.event_name == 'push'
permissions:
contents: read
strategy:
matrix:
os: [linux, darwin, windows]
arch: [amd64, arm64]
exclude:
- os: windows
arch: arm64
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Update embedded data
run: make update-data update-price
- name: Build for ${{ matrix.os }}/${{ matrix.arch }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: make build