-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 791 Bytes
/
Copy pathvalidate.yml
File metadata and controls
37 lines (29 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Validate Workspace
on:
push:
branches:
- master
- main
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Generate workspace metadata
run: python3 scripts/generate-project-metadata.py --check
- name: Validate docs JSON
run: python3 -m json.tool docs/assets/data/projects.json >/dev/null
- name: Test workspace
run: cargo test --workspace --locked