-
Notifications
You must be signed in to change notification settings - Fork 15
52 lines (44 loc) · 1.17 KB
/
Copy pathdocs-validation.yml
File metadata and controls
52 lines (44 loc) · 1.17 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Docs and Config Validation
# Documentation- and config-only pull requests are excluded from the full
# validation workflow, so until now they had no formatting gate at all. This
# runs the Node formatter and nothing else: no Rust toolchain, no builds, no
# visual tests, no benchmarks.
on:
pull_request:
paths:
- '**/*.md'
- '**/*.mdx'
- '**/*.yml'
- '**/*.yaml'
- '**/*.json'
- '**/*.jsonc'
- '.oxfmtrc.json'
- '.oxlintrc.jsonc'
paths-ignore:
- '**/*.rs'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/Cargo.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
format:
name: Check formatting
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout code
uses: actions/checkout@v7.0.1
- name: Setup environment
uses: ./.github/actions/setup
with:
setup-rust: 'false'
- name: Check formatting
run: pnpm exec oxfmt --check .
- name: Check manifests
run: pnpm exec syncpack lint