+9
-28
.tangled/workflows/integration.yml
+9
-28
.tangled/workflows/integration.yml
···
10
dependencies:
11
nixpkgs:
12
- bun
13
-
- curl
14
15
environment:
16
TEST_REMOTE_URL: "https://plcbundle.atscan.net"
···
19
- name: "Install dependencies"
20
command: "bun install"
21
22
-
- name: "Test clone functionality"
23
command: |
24
-
echo "Testing clone from remote repository..."
25
bun src/cli.ts clone \
26
--remote $TEST_REMOTE_URL \
27
--bundles 1-3 \
28
--threads 4 \
29
-
--dir ./test-integration-data
30
31
- name: "Verify downloaded bundles"
32
command: |
33
-
echo "Verifying bundle integrity..."
34
-
bun src/cli.ts verify --bundle 1 --dir ./test-integration-data
35
-
bun src/cli.ts verify --bundle 2 --dir ./test-integration-data
36
-
bun src/cli.ts verify --bundle 3 --dir ./test-integration-data
37
38
-
- name: "Test info command"
39
command: |
40
-
echo "Getting repository info..."
41
-
bun src/cli.ts info --dir ./test-integration-data
42
-
43
-
- name: "Test export command"
44
-
command: |
45
-
echo "Exporting operations from bundle 1..."
46
-
bun src/cli.ts export --bundle 1 --dir ./test-integration-data | head -n 10
47
-
48
-
- name: "Test detect with example"
49
-
command: |
50
-
echo "Testing detect functionality..."
51
-
bun src/cli.ts detect \
52
-
--detect ./examples/detect.ts \
53
-
--bundles 1 \
54
-
--dir ./test-integration-data \
55
-
| head -n 20
56
-
57
-
- name: "Cleanup test data"
58
-
command: "rm -rf ./test-integration-data"
···
10
dependencies:
11
nixpkgs:
12
- bun
13
14
environment:
15
TEST_REMOTE_URL: "https://plcbundle.atscan.net"
···
18
- name: "Install dependencies"
19
command: "bun install"
20
21
+
- name: "Clone test bundles"
22
command: |
23
bun src/cli.ts clone \
24
--remote $TEST_REMOTE_URL \
25
--bundles 1-3 \
26
--threads 4 \
27
+
--dir ./test-data
28
29
- name: "Verify downloaded bundles"
30
command: |
31
+
bun src/cli.ts verify --bundle 1 --dir ./test-data
32
+
bun src/cli.ts verify --bundle 2 --dir ./test-data
33
+
bun src/cli.ts verify --bundle 3 --dir ./test-data
34
35
+
- name: "Test commands"
36
command: |
37
+
bun src/cli.ts info --dir ./test-data
38
+
bun src/cli.ts export --bundle 1 --dir ./test-data | head -n 10
39
+
bun src/cli.ts detect --detect ./examples/detect.ts --bundles 1-2 --dir ./test-data | head -n 20
-42
.tangled/workflows/lint.yml
-42
.tangled/workflows/lint.yml
···
1
-
# Check code quality on every push
2
-
when:
3
-
- event: ["push", "pull_request"]
4
-
branch: ["main", "master", "develop"]
5
-
6
-
engine: "nixery"
7
-
8
-
dependencies:
9
-
nixpkgs:
10
-
- bun
11
-
12
-
steps:
13
-
- name: "Install dependencies"
14
-
command: "bun install"
15
-
16
-
- name: "Check library imports"
17
-
command: |
18
-
echo "Verifying library files compile..."
19
-
bun --print 'import("./src/index.ts")' > /dev/null
20
-
bun --print 'import("./src/plcbundle.ts")' > /dev/null
21
-
bun --print 'import("./src/types.ts")' > /dev/null
22
-
23
-
- name: "Check CLI imports"
24
-
command: |
25
-
echo "Verifying CLI compiles..."
26
-
bun --print 'import("./src/cli.ts")' > /dev/null
27
-
28
-
- name: "Check examples compile"
29
-
command: |
30
-
echo "Verifying examples compile..."
31
-
for file in examples/*.ts; do
32
-
echo "Checking $file..."
33
-
bun --print "import('./$file')" > /dev/null || echo "Note: $file may require data to run"
34
-
done
35
-
36
-
- name: "Check tests compile"
37
-
command: |
38
-
echo "Verifying tests compile..."
39
-
for file in tests/*.ts; do
40
-
echo "Checking $file..."
41
-
bun --print "import('./$file')" > /dev/null
42
-
done
···