Skip to content

Commit ae58b0b

Browse files
committed
Add pcb import tests
1 parent 0e54e3e commit ae58b0b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,23 @@ jobs:
100100

101101
- name: Test stdlib builds
102102
run: pcb build stdlib
103+
104+
- name: Checkout kicad-test-fixtures
105+
uses: actions/checkout@v5
106+
with:
107+
repository: diodeinc/kicad-test-fixtures
108+
token: ${{ secrets.DIODE_ROBOT_TOKEN }}
109+
path: kicad-test-fixtures
110+
111+
- name: Test pcb import (E2E)
112+
run: |
113+
pcb new --workspace test-import --repo github.com/test/test-import
114+
find kicad-test-fixtures -name '*.kicad_pro' | while IFS= read -r pro; do
115+
echo "=== Importing $pro ==="
116+
pcb import "$pro" ./test-import
117+
done
118+
for board_dir in ./test-import/boards/*/; do
119+
board=$(basename "$board_dir")
120+
echo "=== Layout $board ==="
121+
pcb layout "./test-import/boards/$board/$board.zen" --no-open
122+
done

0 commit comments

Comments
 (0)