Skip to content

Commit 9944e2b

Browse files
authored
refactor: Consolidate documentation CI with markdown linting (#715)
1 parent ba9d29e commit 9944e2b

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed
Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: Markdown Lint
18+
name: Documentation CI
1919

2020
on:
2121
pull_request:
2222
paths:
23-
- '**/*.md'
24-
push:
25-
paths:
23+
- 'website/**'
2624
- '**/*.md'
2725

2826
jobs:
29-
markdownlint:
30-
if: github.event_name == 'push' || github.event_name == 'pull_request'
27+
lint-and-build:
3128
runs-on: ubuntu-latest
3229
steps:
3330
- name: Checkout code
@@ -67,3 +64,21 @@ jobs:
6764
else
6865
echo "No markdown files changed, skipping lint."
6966
fi
67+
68+
- name: Setup pnpm
69+
uses: pnpm/action-setup@v4
70+
with:
71+
version: 8
72+
run_install: false
73+
74+
- name: Enable corepack
75+
working-directory: website
76+
run: npm i -g --force corepack && corepack enable
77+
78+
- name: Install dependencies
79+
working-directory: website
80+
run: pnpm install
81+
82+
- name: Build website
83+
working-directory: website
84+
run: pnpm build

0 commit comments

Comments
 (0)