File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test Extension (Windows)
2+
3+ on :
4+ push :
5+ branches : [main, master]
6+ pull_request :
7+ branches : [main, master]
8+ workflow_dispatch : {}
9+
10+ jobs :
11+ test-windows :
12+ runs-on : windows-latest
13+ steps :
14+ - name : Check out repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Quarto
18+ uses : quarto-dev/quarto-actions/setup@v2
19+ with :
20+ version : " pre-release"
21+
22+ - name : Create test document
23+ shell : bash
24+ run : |
25+ mkdir -p test
26+ cp -r _extensions test/
27+ cat > test/test.qmd << 'EOF'
28+ ---
29+ title: "Linkrot Windows Test"
30+ format: html
31+ filters:
32+ - linkrot
33+ extensions:
34+ linkrot:
35+ fail-on-error: true
36+ timeout: 15
37+ debug: true
38+ ---
39+
40+ ## Test Links
41+
42+ These links should be valid:
43+
44+ - [Google](https://www.google.com)
45+ - [GitHub](https://github.com)
46+ EOF
47+
48+ - name : Render test document
49+ run : quarto render test/test.qmd
50+
51+ - name : Verify output exists
52+ shell : bash
53+ run : |
54+ if [ -f "test/test.html" ]; then
55+ echo "Test passed: HTML output generated successfully"
56+ else
57+ echo "Test failed: No HTML output found"
58+ exit 1
59+ fi
You can’t perform that action at this time.
0 commit comments