Skip to content

Make the sign-in code easy to copy #32

Make the sign-in code easy to copy

Make the sign-in code easy to copy #32

Workflow file for this run

name: ci
on:
push:
branches: [main, "feat/**"]
pull_request:
permissions:
contents: read
env:
CGO_ENABLED: "0"
jobs:
test:
name: test (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
include:
# Native runners, so tests run on each target, not just compile (D18 and ADR-0011: no Windows).
- target: linux/amd64
runner: ubuntu-24.04
- target: linux/arm64
runner: ubuntu-24.04-arm
- target: darwin/arm64
runner: macos-15
- target: darwin/amd64
runner: macos-15-intel
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
- name: Check target
run: test "$(go env GOOS)/$(go env GOARCH)" = "${{ matrix.target }}"
- name: Build
run: make build
- name: Test
run: go test -timeout 5m ./...
- uses: actions/upload-artifact@v7
with:
name: atlas-cli-${{ matrix.runner }}
path: bin/atlas-cli
retention-days: 7
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
- uses: golangci/golangci-lint-action@v9
with:
version: v2.14.0
- name: go.mod is tidy
run: go mod tidy -diff