Skip to content

chore: scoop cmd fix #99

chore: scoop cmd fix

chore: scoop cmd fix #99

Workflow file for this run

---
name: Go CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Define default permissions as read-only
permissions: read-all
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1 # Shallow clone for faster checkout
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
check-latest: true
cache: true # Enable Go module cache
- name: Setup tools
run: make setup
- name: Tidy modules
run: make tidy
- name: Check formatting
if: ${{ !cancelled() }}
run: |
make fmt
FORMAT_DIFF=$(git diff)
if [ -n "$FORMAT_DIFF" ]; then
echo "Code is not formatted correctly. Run 'make fmt' locally."
echo "The following files need formatting:"
git diff --name-only
exit 1
fi
- name: Lint code
if: ${{ !cancelled() }}
run: make lint
- name: Run tests
if: ${{ !cancelled() }}
run: make test
- name: Build application
if: ${{ !cancelled() }}
run: make build
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: agent-browser-binary
path: out/agent-browser
retention-days: 7