Skip to content

chore(deps-dev): Bump typescript-eslint from 8.66.0 to 8.67.0 in /web #966

chore(deps-dev): Bump typescript-eslint from 8.66.0 to 8.67.0 in /web

chore(deps-dev): Bump typescript-eslint from 8.66.0 to 8.67.0 in /web #966

Workflow file for this run

name: Squad CI
# go project — configure build/test commands below
on:
pull_request:
branches: [dev, preview, main, insider]
types: [opened, synchronize, reopened]
push:
branches: [dev, insider]
permissions:
contents: read
jobs:
build-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
working-directory: ./
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
lfs: true
- name: Setup Go Environment
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '1.26'
cache-dependency-path: go.sum
- name: Verify Module Dependencies
run: go mod verify
- name: Download Dependencies
run: go mod download
- name: Setup Node.js (for web UI build)
if: matrix.os == 'ubuntu-latest' && hashFiles('web/package.json') != ''
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: web/package-lock.json
- name: Build Web UI
if: matrix.os == 'ubuntu-latest' && hashFiles('web/package.json') != ''
working-directory: web
run: npm ci && npm run build
- name: Ensure web/dist exists (stub for go:embed)
run: |
if [ ! -f web/dist/index.html ]; then
mkdir -p web/dist
echo '<!doctype html><html><head><title>waza</title></head><body>placeholder</body></html>' > web/dist/index.html
echo '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="80" font-size="80">w</text></svg>' > web/dist/favicon.svg
fi
- name: Format Check
if: matrix.os == 'ubuntu-latest'
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go files must be formatted with gofmt:"
gofmt -l .
exit 1
fi
- name: Run Go Vet
run: go vet ./...
- name: Execute Tests
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload Coverage Report
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
file: ./coverage.txt
flags: go-implementation
name: waza
- name: Build Binary
run: |
BINARY_NAME="waza"
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
BINARY_NAME="waza.exe"
fi
go build -v -o $BINARY_NAME ./cmd/waza
# Verify binary
chmod +x ./$BINARY_NAME
./$BINARY_NAME --version
- name: Integration Test
if: matrix.os == 'ubuntu-latest'
run: |
# Verify waza can load and execute an eval end-to-end with the
# mock executor. Exit code 1 = eval tasks failed (expected with
# mock output). Exit code >1 or signal = real crash — fail CI.
set +e
./waza run ./examples/code-explainer/eval.yaml --verbose
EXIT_CODE=$?
if [ $EXIT_CODE -gt 1 ]; then
echo "::error::waza crashed with exit code $EXIT_CODE"
exit $EXIT_CODE
fi
echo "Integration test completed (exit code: $EXIT_CODE)"
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
lfs: true
- name: Setup Go Environment
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '1.26'
- name: Ensure web/dist exists (stub for go:embed)
run: |
if [ ! -f web/dist/index.html ]; then
mkdir -p web/dist
echo '<!doctype html><html><head><title>waza</title></head><body>placeholder</body></html>' > web/dist/index.html
echo '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="80" font-size="80">w</text></svg>' > web/dist/favicon.svg
fi
- name: Run Golangci-Lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
version: v2.10.1
working-directory: ./
args: --timeout=5m