Repository navigation
93 lines (93 loc) · 4.24 KB
/
Copy pathtest.yml
File metadata and controls
93 lines (93 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: issue tracker integration
on:
# image.yml calls this workflow before it publishes an image.
workflow_call:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-24.04, ubuntu-24.04-arm]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: taskcontext
persist-credentials: false
- name: Install packaged CLI
run: |
python3 -m venv "$RUNNER_TEMP/context-client"
"$RUNNER_TEMP/context-client/bin/pip" install ./taskcontext
echo "$RUNNER_TEMP/context-client/bin" >> "$GITHUB_PATH"
- name: Test deployment orchestration
run: python3 taskcontext/tests/deploy_workflow.py
- name: Test packaged resources and launcher
run: python3 taskcontext/tests/packaging.py
- name: Read server revision
id: server
shell: bash
run: |
revision=$(cat taskcontext/POCKETCONTEXT_VERSION)
[[ "$revision" =~ ^[0-9a-f]{40}$ ]]
echo "revision=$revision" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: pocketcontext/pocketcontext
ref: ${{ steps.server.outputs.revision }}
path: pocketcontext
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: pocketcontext/go.mod
cache-dependency-path: pocketcontext/go.sum
- name: Test maintenance entrypoint
run: python3 taskcontext/tests/maintenance_entrypoint.py
- name: Build server
working-directory: pocketcontext
# The flags of pocketcontext's Makefile.
run: CGO_ENABLED=1 go build -tags sqlite_math_functions -o bin/pocketcontext ./cmd/pocketcontext
- name: Test maintenance freeze and frozen restart
run: python3 taskcontext/tests/maintenance.py --binary pocketcontext/bin/pocketcontext
- name: Test issue tracker
run: python3 taskcontext/tests/integration.py --binary pocketcontext/bin/pocketcontext
- name: Test skill
run: python3 taskcontext/tests/skill.py --binary pocketcontext/bin/pocketcontext
- name: Test OAuth client
run: python3 taskcontext/tests/oauth.py
- name: Test OAuth exchange and identity
run: python3 taskcontext/tests/oauth_integration.py --binary pocketcontext/bin/pocketcontext
- name: Test hosted identity client
run: python3 taskcontext/tests/identity_client.py
- name: Test hosted identity exchange and application policy
run: python3 taskcontext/tests/identity_integration.py --binary pocketcontext/bin/pocketcontext
- name: Test deployment hooks
run: python3 taskcontext/tests/deploy.py --binary pocketcontext/bin/pocketcontext
- name: Recovery comparison safety
run: python3 taskcontext/tests/recovery_compare.py
- name: Primary file storage configuration
run: python3 taskcontext/tests/object_storage.py --binary pocketcontext/bin/pocketcontext
- name: Test required user provisioning
run: python3 taskcontext/tests/required_users.py --binary pocketcontext/bin/pocketcontext
- name: Test account access and revocation
run: python3 taskcontext/tests/account_access.py --binary pocketcontext/bin/pocketcontext
- name: Test realtime revocation
run: python3 taskcontext/tests/realtime_access.py --binary pocketcontext/bin/pocketcontext
- name: Test opt-in trace isolation
run: python3 taskcontext/tests/tracing.py --binary pocketcontext/bin/pocketcontext
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 24
- name: Build and test authenticated reader
run: |
npm install --global pnpm@10.33.2
cd taskcontext/ui
pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm build
pnpm exec playwright install --with-deps chromium
pnpm e2e
cd ../..
python3 taskcontext/tests/reader.py --binary pocketcontext/bin/pocketcontext --browser