Skip to content

Commit 7572f75

Browse files
committed
ci: fix tests
1 parent 6ec4ab5 commit 7572f75

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.github/workflows/regression.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ jobs:
1414
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17-
- name: Check cached Vale
18-
id: cache-vale
19-
uses: actions/cache@v4
20-
with:
21-
path: bin
22-
key: vale-${{ env.VALE_VERSION }}
23-
- name: Install Vale
24-
if: steps.cache-vale.outputs.cache-hit != 'true'
25-
run: |
26-
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
27-
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin
28-
echo "./bin" >> $GITHUB_PATH
29-
- name: Verify Vale
30-
run: vale --version
3117
- name: Setup PNPM
3218
uses: pnpm/action-setup@v3
3319
with:
@@ -39,5 +25,21 @@ jobs:
3925
cache: 'pnpm'
4026
- name: Install dependencies
4127
run: pnpm install --frozen-lockfile
28+
- name: Check cached Vale
29+
id: cache-vale
30+
uses: actions/cache@v4
31+
with:
32+
path: vale
33+
key: vale-${{ env.VALE_VERSION }}
34+
- name: Install Vale
35+
if: steps.cache-vale.outputs.cache-hit != 'true'
36+
run: |
37+
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
38+
mkdir vale && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C vale
39+
echo "./vale" >> $GITHUB_PATH
4240
- name: Run tests
43-
run: pnpm test
41+
run: |
42+
cd ./fixtures/Latin/
43+
vale --output=line --sort --normalize --relative test.md
44+
45+
# pnpm test

test/rules.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ function trimEveryLine(multiline) {
1919
.join("\n");
2020
}
2121

22-
test.each(scenario)(`Testing %s`, async (rule, expected) => {
22+
test.each(scenario)(`Test: %s`, async (rule, expected) => {
2323
let result;
2424
try {
2525
const cwd = path.resolve(process.cwd(), fixturesDirectory, rule);
26+
console.log(cwd);
2627
const output = await execa(command, args, { cwd: cwd });
2728
result = output.stdout;
2829
} catch (error) {

0 commit comments

Comments
 (0)