Skip to content

docs: preflight demo commands and re-record error-free gif #19

docs: preflight demo commands and re-record error-free gif

docs: preflight demo commands and re-record error-free gif #19

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- name: Vet
run: go vet ./...
- name: Test (race)
run: go test -race ./...
- name: Build
run: go build ./...
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- name: Test (coverage profile)
run: go test -coverprofile=coverage.out ./...
- name: Coverage Summary
run: go tool cover -func=coverage.out
- name: Upload Coverage Artifact
uses: actions/upload-artifact@v4
with:
name: coverage.out
path: coverage.out
cross-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- name: Build linux amd64
run: GOOS=linux GOARCH=amd64 go build -o dist/cicost_linux_amd64 .
- name: Build linux arm64
run: GOOS=linux GOARCH=arm64 go build -o dist/cicost_linux_arm64 .
- name: Build darwin amd64
run: GOOS=darwin GOARCH=amd64 go build -o dist/cicost_darwin_amd64 .
- name: Build darwin arm64
run: GOOS=darwin GOARCH=arm64 go build -o dist/cicost_darwin_arm64 .
- name: Build windows amd64
run: GOOS=windows GOARCH=amd64 go build -o dist/cicost_windows_amd64.exe .