Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ __pycache__/

# Local build artifacts
/afs
/afs-server
/redis-qmd
/module/*.so
/module/*.xo
/mount/agent-filesystem-mount
/mount/agent-filesystem-nfs
/sandbox/sandbox
Expand All @@ -33,6 +29,5 @@ __pycache__/
afs.config.json
afs.databases.json

# Retired root note/artifact folders
# Retired root note folder; plans/ stays in the build context.
/tasks
/plans
99 changes: 99 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: CI

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
go-root:
name: Go (root)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: go.sum
- name: Vet
run: go vet ./cmd/... ./internal/... ./deploy/...
- name: Test
run: go test ./cmd/... ./internal/... ./deploy/...

go-mount:
name: Go (mount)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# Mount client tests fork a real redis-server per test (see
# mount/internal/client/native_test.go); install the binary so the
# tests can spawn it.
- name: Install redis-server
run: sudo apt-get update && sudo apt-get install -y redis-server
- uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: mount/go.sum
- name: Vet
working-directory: mount
run: go vet ./...
- name: Test
working-directory: mount
run: go test ./...

go-sandbox:
name: Go (sandbox)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: sandbox/go.sum
- name: Vet
working-directory: sandbox
run: go vet ./...
- name: Test
working-directory: sandbox
run: go test ./...

ui:
name: UI
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm
cache-dependency-path: ui/package-lock.json
- run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test

ui-lint:
name: UI lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm
cache-dependency-path: ui/package-lock.json
- run: npm ci
- name: Lint
run: npm run lint
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*.dSYM/
/afs
/afs-control-plane
/afs-server
mount/agent-filesystem-mount
mount/agent-filesystem-nfs
sandbox/sandbox
Expand All @@ -11,7 +10,6 @@ afs.config.json
afs.config.json.backup
afs.databases.json
afs.catalog.sqlite*
module/
ui/.tanstack/
.claude/

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ uninstall: ## Remove the installed afs symlink from $(BINDIR).

clean: ## Remove compiled artifacts.
$(MAKE) -C mount clean
$(RM) afs afs-control-plane afs-server
$(RM) afs afs-control-plane

test: ## Run Go unit tests for the active product surfaces.
go test ./cmd/... ./deploy/... ./internal/...
Expand Down
Loading