GeezerVison is showing github.com — CI: drop the HTML-sources gate and use plain npm ci · Gherkin/HTMLPCBViewer@1d885e2
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +2-25Lines changed: 2 additions & 25 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | workflow_dispatch: |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - # Everything here runs today. No dependency on the missing HTML sources. |
11 | 10 | checks: |
12 | 11 | name: Syntax |
13 | 12 | runs-on: ubuntu-latest |
|
60 | 59 | python build_boards.py --src exports --out built |
61 | 60 | test -s built/boardA/boardA.json |
62 | 61 |
|
63 | | - # Detects whether the HTML sources are present. Until they are (see #5) |
64 | | - # the build and browser jobs skip rather than fail, so the checks that can |
65 | | - # run stay meaningful. Nothing here needs changing when the files land. |
66 | | - sources: |
67 | | - name: Detect HTML sources |
68 | | - runs-on: ubuntu-latest |
69 | | - outputs: |
70 | | - present: ${{ steps.check.outputs.present }} |
71 | | - steps: |
72 | | - - uses: actions/checkout@v4 |
73 | | - - id: check |
74 | | - run: | |
75 | | - if [ -f web/viewer.html ] && [ -f docker/index.html ]; then |
76 | | - echo "present=true" >> "$GITHUB_OUTPUT" |
77 | | - else |
78 | | - echo "present=false" >> "$GITHUB_OUTPUT" |
79 | | - echo "::notice::web/viewer.html or docker/index.html missing, skipping build and browser jobs (see issue #5)" |
80 | | - fi |
81 | | -
|
82 | 62 | build: |
83 | 63 | name: Build |
84 | | - needs: sources |
85 | | - if: needs.sources.outputs.present == 'true' |
86 | 64 | runs-on: ubuntu-latest |
87 | 65 | steps: |
88 | 66 | - uses: actions/checkout@v4 |
|
117 | 95 |
|
118 | 96 | browser: |
119 | 97 | name: Browser |
120 | | - needs: [sources, build] |
121 | | - if: needs.sources.outputs.present == 'true' |
| 98 | + needs: build |
122 | 99 | runs-on: ubuntu-latest |
123 | 100 | steps: |
124 | 101 | - uses: actions/checkout@v4 |
@@ -131,7 +108,7 @@ jobs: |
131 | 108 | with: |
132 | 109 | python-version: '3.12' |
133 | 110 |
|
134 | | - - run: npm ci || npm install |
| 111 | + - run: npm ci |
135 | 112 |
|
136 | 113 | - run: npx playwright install --with-deps chromium |
137 | 114 |
|
|