7575 shell : bash # use the runner's Git bash for all steps
7676 env :
7777 CGO_ENABLED : " 1" # required for the tree-sitter parsers
78- BUNDLE_GEMFILE : ${{ github.workspace }}/testdata/Gemfile
7978 steps :
8079 - uses : actions/checkout@v5
8180 with :
@@ -85,44 +84,14 @@ jobs:
8584 with :
8685 go-version : " 1.25.7"
8786
88- - uses : ruby/setup-ruby@v1
89- with :
90- ruby-version : " 3.3"
91-
92- - uses : actions/setup-node@v4
93- with :
94- node-version : " 20"
95-
96- - uses : actions/setup-python@v5
97- with :
98- python-version : " 3.x"
99-
100- - uses : actions/setup-java@v4
101- with :
102- distribution : temurin
103- java-version : " 17"
104-
105- - name : Install documentation toolchain
106- run : |
107- choco install --no-progress -y xsltproc
108- # Git ships a non-functional xsltproc; drop it so the choco one wins.
109- rm -f "/c/Program Files/Git/usr/bin/xsltproc.exe" || true
110- python -m pip install --upgrade docutils sphinx # rst2html
111- gem install asciidoctor
112- npm install -g mdx2vast
113- curl -fsSL -o dita-ot-3.6.zip \
114- https://github.com/dita-ot/dita-ot/releases/download/3.6/dita-ot-3.6.zip
115- unzip -q dita-ot-3.6.zip
116- echo "$PWD/dita-ot-3.6/bin" >> "$GITHUB_PATH"
117-
118- - name : Setup (bundle install)
119- run : cd testdata && bundle install
120-
12187 - name : Build
12288 run : go build -o bin/vale.exe ./cmd/vale
12389
124- - name : Test
125- run : |
126- export PATH="$PWD/bin:$PATH"
127- go test ./internal/core ./internal/lint ./internal/check ./internal/nlp ./internal/glob ./cmd/vale
128- cd testdata && cucumber --format progress
90+ # NOTE: The Cucumber suite runs on Linux only. Its aruba -> childprocess ->
91+ # ffi stack can't spawn processes on modern Windows + Ruby 3.x (every step
92+ # fails with `ChildProcess::Error: Unknown error`); AppVeyor only managed
93+ # it on the now-unavailable Ruby 2.4. Windows still covers the build
94+ # (including CGO/tree-sitter) and the Go unit tests -- which is where the
95+ # Windows-specific behavior (path handling, etc.) actually lives.
96+ - name : Test (Go)
97+ run : go test ./internal/core ./internal/lint ./internal/check ./internal/nlp ./internal/glob ./cmd/vale
0 commit comments