Skip to content

Commit b501f7d

Browse files
committed
Update to toolproof 0.3.0
1 parent 238008c commit b501f7d

16 files changed

+60
-16
lines changed

.github/workflows/release.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ jobs:
475475

476476
- name: Test CLI
477477
if: matrix.run_tests == true
478-
working-directory: ./pagefind
479-
run: TEST_BINARY=../target/${{ matrix.target }}/release/pagefind humane
478+
run: ./test_ci.sh
480479

481480
- name: Move extended binary aside
482481
run: |

pagefind/integration_tests/build_options/output-path-can-be-configured-with-an-absolute-path.toolproof.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#TODO: This is a broken test that needs to be fixed.
2-
3-
type: reference
41
name: Build Options > Output path can be configured with an absolute path
2+
53
steps:
64
- ref: ./background.toolproof.yml
75
- step: I have a "public/index.html" file with the content {html}
@@ -14,7 +12,7 @@ steps:
1412
lang="en"><head></head><body><h1>world</h1></body></html>
1513
- step: >-
1614
I run "%pagefind_exec_path% --output-subdir
17-
%todo_toolproof_dir_abs_path%/other/_search"
15+
%toolproof_test_directory%/other/_search"
1816
- step: stdout should contain "Running Pagefind"
1917
- step: The file "other/_search/pagefind.js" should not be empty
2018
- step: I serve the directory "."

pagefind/integration_tests/frozen-pre-1.0/build_options/legacy-output-path-can-be-configured-with-an-absolute-path.toolproof.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#TODO: This is a broken test that needs to be fixed.
2-
3-
type: reference
41
name: Build Options > LEGACY Output path can be configured with an absolute path
2+
53
steps:
64
- ref: ./background.toolproof.yml
75
- step: I have a "public/index.html" file with the content {html}
@@ -16,7 +14,7 @@ steps:
1614
lang="en"><head></head><body><h1>world</h1></body></html>
1715
- step: >-
1816
I run "%pagefind_exec_path% --bundle-dir
19-
%todo_toolproof_dir_abs_path%/other/_search"
17+
%toolproof_test_directory%/other/_search"
2018
- step: stdout should contain "Running Pagefind"
2119
- step: The file "other/_search/pagefind.js" should not be empty
2220
- step: I serve the directory "."

pagefind/integration_tests/node_api/node_base/an-index-is-not-consumed-on-write.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > An index is not consumed on write
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "output/index.html" file with the content {html}

pagefind/integration_tests/node_api/node_base/build-a-blended-index-to-memory-via-the-api.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Build a blended index to memory via the api
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: >-

pagefind/integration_tests/node_api/node_base/build-a-synthetic-index-to-disk-via-the-api.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Build a synthetic index to disk via the api
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}

pagefind/integration_tests/node_api/node_base/build-a-synthetic-index-to-memory-via-the-api.toolproof.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Build a synthetic index to memory via the api
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}
@@ -27,4 +31,4 @@ steps:
2731
- step: stdout should contain "JS is at pagefind.js"
2832
- step: stdout should contain "1 fragment(s)"
2933
- step: I run "ls -lh public/pagefind/pagefind.js" and expect it to fail
30-
notes: 'TODO: Build a file existence check into toolproof'
34+
notes: "TODO: Build a file existence check into toolproof"

pagefind/integration_tests/node_api/node_base/build-a-synthetic-index-with-overridden-urls-to-disk-via-the-api.toolproof.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: >-
22
Node API Base Tests > Build a synthetic index with overridden urls to disk via
33
the api
4+
5+
platforms:
6+
- linux
7+
- mac
8+
49
steps:
510
- ref: ./background.toolproof.yml
611
- step: I have a "public/index.js" file with the content {js}

pagefind/integration_tests/node_api/node_base/build-a-true-index-to-disk-via-the-api.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Build a true index to disk via the api
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: >-

pagefind/integration_tests/node_api/node_base/build-an-index-to-a-custom-disk-location-via-the-api.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Build an index to a custom disk location via the api
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "output/index.html" file with the content {html}

pagefind/integration_tests/node_api/node_base/close-the-pagefind-backend.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Close the Pagefind backend
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}

pagefind/integration_tests/node_api/node_base/force-language-takes-precedence-over-records.toolproof.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Force language takes precedence over records
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}
@@ -29,10 +33,10 @@ steps:
2933
- step: stdout should contain "✨!"
3034
- step: The file "public/pagefind/pagefind.js" should not be empty
3135
- step: I run "ls -lh public/pagefind/wasm.unknown.pagefind"
32-
notes: 'TODO: Build a file existence check into toolproof'
36+
notes: "TODO: Build a file existence check into toolproof"
3337
- step: I run "ls -lh public/pagefind/wasm.fr.pagefind"
34-
notes: 'TODO: Build a file existence check into toolproof'
38+
notes: "TODO: Build a file existence check into toolproof"
3539
- step: I run "ls -lh public/pagefind/wasm.pt.pagefind" and expect it to fail
36-
notes: 'TODO: Build a file existence check into toolproof'
40+
notes: "TODO: Build a file existence check into toolproof"
3741
- step: I run "ls -lh public/pagefind/wasm.en.pagefind" and expect it to fail
38-
notes: 'TODO: Build a file existence check into toolproof'
42+
notes: "TODO: Build a file existence check into toolproof"

pagefind/integration_tests/node_api/node_base/pagefind-empty-index-returns-assets.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Pagefind empty index returns assets
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}

pagefind/integration_tests/node_api/node_base/pagefind-error-handling.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Pagefind error handling
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}

pagefind/integration_tests/node_api/node_base/pagefind-service-config.toolproof.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Node API Base Tests > Pagefind service config
2+
platforms:
3+
- linux
4+
- mac
5+
26
steps:
37
- ref: ./background.toolproof.yml
48
- step: I have a "public/index.js" file with the content {js}

test_ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ cd $SCRIPT_DIR
66
PAGEFIND=$(realpath "$SCRIPT_DIR/target/release/pagefind")
77
REPO_WD=$(realpath "$SCRIPT_DIR")
88

9-
npx -y toolproof --placeholders pagefind_exec_path="$PAGEFIND" repo_wd="$REPO_WD"
9+
npx -y toolproof@0.3.0 --placeholders pagefind_exec_path="$PAGEFIND" repo_wd="$REPO_WD" -c 4

0 commit comments

Comments
 (0)