File tree 2 files changed +19
-16
lines changed
2 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 14
14
uses : actions/checkout@v4
15
15
with :
16
16
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
31
17
- name : Setup PNPM
32
18
uses : pnpm/action-setup@v3
33
19
with :
39
25
cache : ' pnpm'
40
26
- name : Install dependencies
41
27
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
42
40
- 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
Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ function trimEveryLine(multiline) {
19
19
. join ( "\n" ) ;
20
20
}
21
21
22
- test . each ( scenario ) ( `Testing %s` , async ( rule , expected ) => {
22
+ test . each ( scenario ) ( `Test: %s` , async ( rule , expected ) => {
23
23
let result ;
24
24
try {
25
25
const cwd = path . resolve ( process . cwd ( ) , fixturesDirectory , rule ) ;
26
+ console . log ( cwd ) ;
26
27
const output = await execa ( command , args , { cwd : cwd } ) ;
27
28
result = output . stdout ;
28
29
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments