Skip to content

Add org regions command (#79) #247

Add org regions command (#79)

Add org regions command (#79) #247

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Lint
run: |
go mod tidy
go fmt ./...
git diff --exit-code
- name: Test
run: go test ./...
- name: Verify README references the latest release
if: matrix.os == 'ubuntu-latest'
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG=$(gh release view --repo "$GITHUB_REPOSITORY" --json tagName --jq .tagName)
if ! grep -qF "releases/download/$TAG/" README.md; then
echo "README.md install instructions do not reference latest release $TAG; please update them."
exit 1
fi
# The train e2e test pushes through truss, which the CLI runs with
# `uv tool run`.
- name: Install uv
if: matrix.os == 'ubuntu-latest'
uses: astral-sh/setup-uv@v5
- name: E2E test
if: matrix.os == 'ubuntu-latest'
env:
# Forks won't have these secrets so e2e tests skip, but pushes
# to main will run them.
BASETEN_E2E_TEST_API_KEY: ${{ secrets.BASETEN_E2E_TEST_API_KEY }}
BASETEN_E2E_TEST_REMOTE_URL: ${{ secrets.BASETEN_E2E_TEST_REMOTE_URL }}
run: go test -tags=e2e -timeout 30m ./internal/e2e-tests/...