Skip to content

Commit 97a85bb

Browse files
committed
test workflow to exercise Vale in GH infra
1 parent 2cf61d1 commit 97a85bb

File tree

9 files changed

+1304
-14
lines changed

9 files changed

+1304
-14
lines changed

.github/workflows/test2.yml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,41 @@
1-
name: Hakim testing2
1+
name: Vale npm tests
22

33
on:
4-
workflow_dispatch:
4+
pull_request:
5+
paths:
6+
- styletest/**
57

68
jobs:
7-
no-inherit:
8-
uses: couchbaselabs/docs-runner/.github/workflows/secret-test.yml@main
9-
10-
inherit:
11-
uses: couchbaselabs/docs-runner/.github/workflows/secret-test.yml@main
12-
secrets: inherit
13-
14-
call:
9+
npm-test:
1510
runs-on: ubuntu-latest
1611
steps:
17-
- name: test secret
12+
- name: install asciidoctor
13+
run: |
14+
sudo apt-get install -y asciidoctor
15+
16+
- name: install vale
17+
run: |
18+
sudo snap install vale
19+
20+
- name: checkout repo
21+
uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
27+
- name: diagnose Vale
28+
working-directory: ./styletest
29+
run: |
30+
vale -v
31+
vale ls-dirs
32+
vale ls-config
33+
vale ls-vars
34+
35+
- name: npm test
36+
working-directory: ./styletest
1837
run: |
19-
gh --repo couchbaselabs/docs-runner workflow run .github/workflows/secret-test.yml --ref main
20-
env:
21-
GH_TOKEN: ${{ secrets.ACTION_TOKEN }}
38+
npm ci
39+
pwd
40+
ls
41+
npm test

styletest/.vale.ini

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
StylesPath = "."
2+
MinAlertLevel = suggestion
3+
4+
[asciidoctor]
5+
description = YES
6+
docname = YES
7+
doctitle = YES
8+
doctype = YES
9+
docfile = YES
10+
example-caption = YES
11+
figure-caption = YES
12+
important-caption = YES
13+
listing-caption = YES
14+
note-caption = YES
15+
outfile = YES
16+
part-signifier = YES
17+
preface-title = YES
18+
table-caption = YES
19+
tip-caption = YES
20+
toc-title = YES
21+
warning-caption = YES
22+
23+
experimental = YES
24+
25+
attribute-missing = drop
26+
27+
[*.{adoc,md,txt}]
28+
BasedOnStyles = Minimal
29+
30+
Vale.Spelling = NO
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends: conditional
2+
message: "'%s' hasn't been defined. Spell it out if it's unfamiliar to the audience."
3+
link: 'https://developers.google.com/style/abbreviations'
4+
level: error
5+
ignorecase: false
6+
first: '\b([A-Z]{3,5})\b'
7+
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'

0 commit comments

Comments
 (0)