38 lines
918 B
YAML
38 lines
918 B
YAML
name: build
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout from in-cluster gitea
|
|
run: |
|
|
set -e
|
|
git clone --depth=1 \
|
|
"http://gitea_admin:${{ secrets.ADMIN_PW }}@gitea-http.gitea.svc.cluster.local:3000/gitea_admin/a2a-mcp.git" .
|
|
git checkout "$GITHUB_SHA"
|
|
|
|
- name: setup node
|
|
run: |
|
|
set -e
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends ca-certificates curl
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
|
apt-get install -y --no-install-recommends nodejs
|
|
node --version
|
|
npm --version
|
|
|
|
- name: install dependencies
|
|
run: npm ci
|
|
|
|
- name: test
|
|
run: npm test
|
|
|
|
- name: build
|
|
run: npm run build
|
|
|
|
- name: verify package contents
|
|
run: npm pack --dry-run
|