Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 34 additions & 14 deletions .github/workflows/test2.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
name: Hakim testing2
name: Vale npm tests

on:
workflow_dispatch:
pull_request:
paths:
- styletest/**

jobs:
no-inherit:
uses: couchbaselabs/docs-runner/.github/workflows/secret-test.yml@main

inherit:
uses: couchbaselabs/docs-runner/.github/workflows/secret-test.yml@main
secrets: inherit

call:
npm-test:
runs-on: ubuntu-latest
steps:
- name: test secret
- name: install asciidoctor
run: |
sudo apt-get install -y asciidoctor

- name: install vale
run: |
sudo snap install vale

- name: checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22

- name: diagnose Vale
working-directory: ./styletest
run: |
vale -v
vale ls-dirs
vale ls-config
vale ls-vars

- name: npm test
working-directory: ./styletest
run: |
gh --repo couchbaselabs/docs-runner workflow run .github/workflows/secret-test.yml --ref main
env:
GH_TOKEN: ${{ secrets.ACTION_TOKEN }}
npm ci
pwd
ls
npm test
Empty file added example/foo
Empty file.
30 changes: 30 additions & 0 deletions styletest/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
StylesPath = "."
MinAlertLevel = suggestion

[asciidoctor]
description = YES
docname = YES
doctitle = YES
doctype = YES
docfile = YES
example-caption = YES
figure-caption = YES
important-caption = YES
listing-caption = YES
note-caption = YES
outfile = YES
part-signifier = YES
preface-title = YES
table-caption = YES
tip-caption = YES
toc-title = YES
warning-caption = YES

experimental = YES

attribute-missing = drop

[*.{adoc,md,txt}]
BasedOnStyles = Minimal

Vale.Spelling = NO
7 changes: 7 additions & 0 deletions styletest/Minimal/UnexplainedAcronym.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: conditional
message: "'%s' hasn't been defined. Spell it out if it's unfamiliar to the audience."
link: 'https://developers.google.com/style/abbreviations'
level: error
ignorecase: false
first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
Loading
Loading