38 lines
887 B
YAML
38 lines
887 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.22"
|
|
cache-dependency-path: go.sum
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
cache-dependency-path: web/package-lock.json
|
|
|
|
- name: Install build deps (SQLite CGO)
|
|
run: sudo apt-get update && sudo apt-get install -y gcc libsqlite3-dev netcat-openbsd
|
|
|
|
- name: Run CI test harness
|
|
run: chmod +x scripts/*.sh && ./scripts/ci-test.sh
|
|
|
|
- name: Upload e2e artifacts on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: e2e-logs
|
|
path: /tmp/forge-mesh-e2e*
|
|
if-no-files-found: ignore
|