-
Notifications
You must be signed in to change notification settings - Fork 7.3k
ZOOKEEPER-5020: Improve ZooKeeper website #2373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1a7bc1b
06217d0
37a6f19
78d5f71
ebc8b5c
a0729bc
0e0ecb2
f9f5a8c
ff2606e
e368bfe
0724aa0
b454945
e620fbb
53c2734
5960eef
2e5d73b
166ddc3
529b5ad
b732d1c
44a940c
0d98c40
3a834a5
ff5070b
1d207df
653f98b
53aa913
68eb559
56799e1
f26c796
bf7bf9e
81c7751
a7d43e1
c7b80bc
93d6b75
e261df2
1cb7494
46aa14c
96147ee
491e56a
35732ea
166bc27
9399dd1
d4cdac0
6ec295b
2adb71b
74bf250
4ac2334
f6ba120
0d7a771
91240ee
d73e801
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| name: Website | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ '*' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| site: | ||
| name: website-site | ||
| timeout-minutes: 120 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actions/checkout@v6 — outdated; v7 adds fork-PR security fix |
||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| java-version: 11 | ||
| distribution: temurin | ||
| cache: 'maven' | ||
| - name: Set up Node.js 22 | ||
| uses: actions/setup-node@v5 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actions/setup-node@v5 — outdated; v6 is latest |
||
| with: | ||
| node-version: 22 | ||
| cache: 'npm' | ||
| cache-dependency-path: zookeeper-website/package-lock.json | ||
| - name: Show the first log message | ||
| run: git log -n1 | ||
| - name: Install website npm dependencies | ||
| working-directory: zookeeper-website | ||
| run: npm ci | ||
| - name: Install Playwright browsers and system dependencies | ||
| working-directory: zookeeper-website | ||
| run: npx playwright install --with-deps | ||
| - name: Build website with Maven site | ||
| run: mvn -B -V -e -ntp "-Dstyle.color=always" -pl zookeeper-website site | ||
| env: | ||
| MAVEN_OPTS: -Djansi.force=true | ||
| - name: Upload website Playwright report | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: website-playwright-report | ||
| path: zookeeper-website/playwright-report/ | ||
| if-no-files-found: ignore | ||
| - name: Upload website test results | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: website-test-results | ||
| path: zookeeper-website/test-results/ | ||
| if-no-files-found: ignore | ||
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For installing Playwright in GH Actions you might find this useful:
https://playwright.dev/docs/ci-intro#setting-up-github-actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, also - npx playwright install --with-deps fetches browser binaries (~300MB+) on every run. Add caching to cut 1–2 minutes per run...