Skip to content

Commit 0260118

Browse files
committed
Remove generated files dependency
1 parent fd6de52 commit 0260118

File tree

1 file changed

+37
-59
lines changed

1 file changed

+37
-59
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,43 @@ jobs:
6666
- name: Check clippy
6767
run: cargo clippy --workspace -- -Dwarnings
6868

69+
accessibility-linting:
70+
runs-on: ubuntu-latest
71+
72+
steps:
73+
- uses: actions/checkout@v4
74+
75+
- name: Create Dummy Generated Pages
76+
run: echo "TODO"
77+
78+
- name: Install NPM
79+
uses: actions/setup-node@v4
80+
with:
81+
node-version: 18
82+
83+
- name: Install Google Chrome
84+
run: |
85+
sudo apt-get install -y chromium-browser
86+
which chromium-browser
87+
chromium-browser --version
88+
89+
- name: Install Zola
90+
uses: taiki-e/install-action@v2
91+
with:
92+
93+
94+
- name: Install Pa11y-CI and Wait-on
95+
run: |
96+
npm install pa11y-ci wait-on
97+
node node_modules/puppeteer/install.js
98+
99+
- name: Run Pa11y-CI
100+
run: |
101+
echo -e "{\n \"defaults\": {\n \"chromeLaunchConfig\": {\n \"executablePath\": \"/usr/bin/chromium-browser\"\n }\n }\n}" > .pa11yci
102+
zola serve &
103+
npx wait-on http://127.0.0.1:1111
104+
npx pa11y-ci --sitemap http://127.0.0.1:1111/sitemap.xml
105+
69106
generate-assets:
70107
needs: [super-linter, test-code-examples, lint-tools, check-hide-lines]
71108
runs-on: ubuntu-latest
@@ -239,62 +276,3 @@ jobs:
239276
BUILD_DIR: .
240277
BUILD_ONLY: true
241278
TOKEN: fake-secret
242-
243-
accessibility-linting:
244-
runs-on: ubuntu-latest
245-
needs: [super-linter, test-code-examples, lint-tools, check-hide-lines, generate-assets, generate-errors, generate-wasm-examples, generate-community]
246-
247-
steps:
248-
- uses: actions/checkout@v4
249-
- uses: actions/download-artifact@v4
250-
with:
251-
name: generated-assets
252-
path: content/assets
253-
254-
- uses: actions/download-artifact@v4
255-
with:
256-
name: generated-errors
257-
path: content/learn/errors
258-
259-
- uses: actions/download-artifact@v4
260-
with:
261-
name: generated-wasm-examples
262-
path: content/examples
263-
264-
- uses: actions/download-artifact@v4
265-
with:
266-
name: generated-wasm-examples-webgpu
267-
path: content/examples-webgpu
268-
269-
- uses: actions/download-artifact@v4
270-
with:
271-
name: generated-community
272-
path: content/community/people
273-
274-
- name: Install NPM
275-
uses: actions/setup-node@v4
276-
with:
277-
node-version: 18
278-
279-
- name: Install Google Chrome
280-
run: |
281-
sudo apt-get install -y chromium-browser
282-
which chromium-browser
283-
chromium-browser --version
284-
285-
- name: Install Zola
286-
uses: taiki-e/install-action@v2
287-
with:
288-
289-
290-
- name: Install Pa11y-CI and Wait-on
291-
run: |
292-
npm install pa11y-ci wait-on
293-
node node_modules/puppeteer/install.js
294-
295-
- name: Run Pa11y-CI
296-
run: |
297-
echo -e "{\n \"defaults\": {\n \"chromeLaunchConfig\": {\n \"executablePath\": \"/usr/bin/chromium-browser\"\n }\n }\n}" > .pa11yci
298-
zola serve &
299-
npx wait-on http://127.0.0.1:1111
300-
npx pa11y-ci --sitemap http://127.0.0.1:1111/sitemap.xml

0 commit comments

Comments
 (0)