Skip to content

Commit 21a0d30

Browse files
committed
Still trying to figure the docserver out
1 parent a08edba commit 21a0d30

File tree

1 file changed

+134
-134
lines changed

1 file changed

+134
-134
lines changed

.github/workflows/pull-request.yml

Lines changed: 134 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: ./.github/actions/src/info
4141

4242
- name: Echo Information about docserver
43-
if: ${{ !steps.info.outputs.docserver.changes }}
43+
if: ${{ steps.info.outputs.docserver.changes != 'true' }}
4444
run: echo ${{ steps.info.outputs.docserver }}
4545

4646
- name: Echo Information about devserver
@@ -91,139 +91,139 @@ jobs:
9191
if: matrix.lib.changes && matrix.os == 'ubuntu-latest'
9292
run: yarn workspaces foreach -A --include ${{ matrix.lib.name }} run tsc
9393

94-
tabs:
95-
runs-on: ubuntu-latest
96-
needs: find-packages
97-
strategy:
98-
fail-fast: false
99-
matrix:
100-
tabInfo: ${{ fromJson(needs.find-packages.outputs.tabs) }}
101-
name: ${{ matrix.tabInfo.tabName }} Tab
102-
steps:
103-
- name: Check out source code
104-
if: matrix.tabInfo.changes
105-
uses: actions/checkout@v4
106-
107-
- name: Initialize Repo
108-
if: matrix.tabInfo.changes
109-
uses: ./.github/actions/src/init
110-
with:
111-
package-name: ${{ matrix.tabInfo.name }}
112-
playwright: ${{ matrix.tabInfo.needsPlaywright && matrix.tabInfo.changes }}
113-
114-
- name: Build Tab
115-
if: matrix.tabInfo.changes
116-
run: |
117-
cd ${{ matrix.tabInfo.directory }}
118-
yarn build
119-
120-
- name: Upload Tab Artifact
121-
if: matrix.tabInfo.changes
122-
uses: actions/upload-artifact@v4
123-
with:
124-
name: ${{ matrix.tabInfo.tabName }} Tab
125-
path: ./build/tabs/${{ matrix.tabInfo.tabName }}.js
126-
127-
- name: Run Tests
128-
# https://github.com/vitest-dev/vitest/issues/5477
129-
# Known Vitest issue for coverage running in browser mode
130-
# Momentarily disable coverage checking on Github Actions for tabs
131-
if: matrix.tabInfo.changes
132-
run: |
133-
cd ${{ matrix.tabInfo.directory }}
134-
yarn test
135-
136-
- name: Run Auxillary Tasks
137-
if: matrix.tabInfo.changes
138-
run: |
139-
cd ${{ matrix.tabInfo.directory }}
140-
yarn tsc
141-
142-
bundles:
143-
runs-on: ubuntu-latest
144-
needs: find-packages
145-
strategy:
146-
fail-fast: false
147-
matrix:
148-
bundleInfo: ${{ fromJson(needs.find-packages.outputs.bundles) }}
149-
name: ${{ matrix.bundleInfo.bundleName }} Bundle
150-
steps:
151-
- name: Check out source code
152-
if: matrix.bundleInfo.changes
153-
uses: actions/checkout@v4
154-
155-
- name: Initialize Repo
156-
if: matrix.bundleInfo.changes
157-
uses: ./.github/actions/src/init
158-
with:
159-
package-name: ${{ matrix.bundleInfo.name }}
160-
playwright: ${{ matrix.bundleInfo.needsPlaywright }}
161-
162-
- name: Build Bundle
163-
if: matrix.bundleInfo.changes
164-
run: |
165-
cd ${{ matrix.bundleInfo.directory }}
166-
yarn build
167-
yarn tsc
168-
169-
- name: Upload Compiled Bundle Artifact
170-
if: matrix.bundleInfo.changes
171-
uses: actions/upload-artifact@v4
172-
with:
173-
name: ${{ matrix.bundleInfo.bundleName }} Compiled Bundle
174-
path: ./build/bundles/${{ matrix.bundleInfo.bundleName }}.js
175-
176-
- name: Build Bundle Docs
177-
if: matrix.bundleInfo.changes
178-
run: |
179-
cd ${{ matrix.bundleInfo.directory }}
180-
yarn buildtools build docs
181-
182-
- name: Upload Compiled Bundle Docs Artifact
183-
if: matrix.bundleInfo.changes
184-
uses: actions/upload-artifact@v4
185-
with:
186-
path: ${{ matrix.bundleInfo.directory }}/dist/docs.json
187-
name: ${{ matrix.bundleInfo.bundleName }} Docs
188-
189-
- name: Run Tests
190-
if: matrix.bundleInfo.changes
191-
run: |
192-
cd ${{ matrix.bundleInfo.directory }}
193-
yarn test --coverage
194-
195-
devserver:
196-
name: Dev Server Tasks
197-
runs-on: ubuntu-latest
198-
needs:
199-
- find-packages
200-
- bundles
201-
- tabs
202-
203-
if: ${{ needs.find-packages.outputs.devserver.changes }}
204-
205-
steps:
206-
- name: Check out source code
207-
uses: actions/checkout@v4
208-
209-
- name: Initialize Repo
210-
uses: ./.github/actions/src/init
211-
with:
212-
package-name: '@sourceacademy/modules-devserver'
213-
playwright: true
214-
215-
- name: Build all tabs
216-
run: yarn workspaces foreach -ptW --from "./src/tabs/*" run build
217-
218-
- name: Run tests
219-
run: |
220-
cd ./devserver
221-
yarn test --coverage
222-
223-
- name: Run Auxillary Tasks
224-
run: |
225-
cd ./devserver
226-
yarn tsc
94+
# tabs:
95+
# runs-on: ubuntu-latest
96+
# needs: find-packages
97+
# strategy:
98+
# fail-fast: false
99+
# matrix:
100+
# tabInfo: ${{ fromJson(needs.find-packages.outputs.tabs) }}
101+
# name: ${{ matrix.tabInfo.tabName }} Tab
102+
# steps:
103+
# - name: Check out source code
104+
# if: matrix.tabInfo.changes
105+
# uses: actions/checkout@v4
106+
107+
# - name: Initialize Repo
108+
# if: matrix.tabInfo.changes
109+
# uses: ./.github/actions/src/init
110+
# with:
111+
# package-name: ${{ matrix.tabInfo.name }}
112+
# playwright: ${{ matrix.tabInfo.needsPlaywright && matrix.tabInfo.changes }}
113+
114+
# - name: Build Tab
115+
# if: matrix.tabInfo.changes
116+
# run: |
117+
# cd ${{ matrix.tabInfo.directory }}
118+
# yarn build
119+
120+
# - name: Upload Tab Artifact
121+
# if: matrix.tabInfo.changes
122+
# uses: actions/upload-artifact@v4
123+
# with:
124+
# name: ${{ matrix.tabInfo.tabName }} Tab
125+
# path: ./build/tabs/${{ matrix.tabInfo.tabName }}.js
126+
127+
# - name: Run Tests
128+
# # https://github.com/vitest-dev/vitest/issues/5477
129+
# # Known Vitest issue for coverage running in browser mode
130+
# # Momentarily disable coverage checking on Github Actions for tabs
131+
# if: matrix.tabInfo.changes
132+
# run: |
133+
# cd ${{ matrix.tabInfo.directory }}
134+
# yarn test
135+
136+
# - name: Run Auxillary Tasks
137+
# if: matrix.tabInfo.changes
138+
# run: |
139+
# cd ${{ matrix.tabInfo.directory }}
140+
# yarn tsc
141+
142+
# bundles:
143+
# runs-on: ubuntu-latest
144+
# needs: find-packages
145+
# strategy:
146+
# fail-fast: false
147+
# matrix:
148+
# bundleInfo: ${{ fromJson(needs.find-packages.outputs.bundles) }}
149+
# name: ${{ matrix.bundleInfo.bundleName }} Bundle
150+
# steps:
151+
# - name: Check out source code
152+
# if: matrix.bundleInfo.changes
153+
# uses: actions/checkout@v4
154+
155+
# - name: Initialize Repo
156+
# if: matrix.bundleInfo.changes
157+
# uses: ./.github/actions/src/init
158+
# with:
159+
# package-name: ${{ matrix.bundleInfo.name }}
160+
# playwright: ${{ matrix.bundleInfo.needsPlaywright }}
161+
162+
# - name: Build Bundle
163+
# if: matrix.bundleInfo.changes
164+
# run: |
165+
# cd ${{ matrix.bundleInfo.directory }}
166+
# yarn build
167+
# yarn tsc
168+
169+
# - name: Upload Compiled Bundle Artifact
170+
# if: matrix.bundleInfo.changes
171+
# uses: actions/upload-artifact@v4
172+
# with:
173+
# name: ${{ matrix.bundleInfo.bundleName }} Compiled Bundle
174+
# path: ./build/bundles/${{ matrix.bundleInfo.bundleName }}.js
175+
176+
# - name: Build Bundle Docs
177+
# if: matrix.bundleInfo.changes
178+
# run: |
179+
# cd ${{ matrix.bundleInfo.directory }}
180+
# yarn buildtools build docs
181+
182+
# - name: Upload Compiled Bundle Docs Artifact
183+
# if: matrix.bundleInfo.changes
184+
# uses: actions/upload-artifact@v4
185+
# with:
186+
# path: ${{ matrix.bundleInfo.directory }}/dist/docs.json
187+
# name: ${{ matrix.bundleInfo.bundleName }} Docs
188+
189+
# - name: Run Tests
190+
# if: matrix.bundleInfo.changes
191+
# run: |
192+
# cd ${{ matrix.bundleInfo.directory }}
193+
# yarn test --coverage
194+
195+
# devserver:
196+
# name: Dev Server Tasks
197+
# runs-on: ubuntu-latest
198+
# needs:
199+
# - find-packages
200+
# - bundles
201+
# - tabs
202+
203+
# if: ${{ needs.find-packages.outputs.devserver.changes }}
204+
205+
# steps:
206+
# - name: Check out source code
207+
# uses: actions/checkout@v4
208+
209+
# - name: Initialize Repo
210+
# uses: ./.github/actions/src/init
211+
# with:
212+
# package-name: '@sourceacademy/modules-devserver'
213+
# playwright: true
214+
215+
# - name: Build all tabs
216+
# run: yarn workspaces foreach -ptW --from "./src/tabs/*" run build
217+
218+
# - name: Run tests
219+
# run: |
220+
# cd ./devserver
221+
# yarn test --coverage
222+
223+
# - name: Run Auxillary Tasks
224+
# run: |
225+
# cd ./devserver
226+
# yarn tsc
227227

228228
docserver:
229229
name: Docs Server Tasks

0 commit comments

Comments
 (0)