File tree 2 files changed +15
-19
lines changed
2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ name: Regression tests
2
2
3
3
on : [push, pull_request]
4
4
5
- env :
6
- VALE_VERSION : 3.2.2
7
-
8
5
jobs :
9
6
10
7
tests :
14
11
uses : actions/checkout@v4
15
12
with :
16
13
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
14
- name : Setup PNPM
32
15
uses : pnpm/action-setup@v3
33
16
with :
39
22
cache : ' pnpm'
40
23
- name : Install dependencies
41
24
run : pnpm install --frozen-lockfile
25
+ - name : Install Vale
26
+ uses : supplypike/setup-bin@v3
27
+ with :
28
+ uri : ' https://github.com/errata-ai/vale/releases/download/v${{ env.VALE_VERSION }}/vale_${{ env.VALE_VERSION }}_Linux_64-bit.tar.gz'
29
+ name : ' vale'
30
+ version : ${{ env.VALE_VERSION }}
31
+ env :
32
+ VALE_VERSION : 3.2.2
42
33
- name : Run tests
43
- run : pnpm test
34
+ run : |
35
+ cd ./fixtures/Latin/
36
+ vale --output=line --sort --normalize --relative test.md
37
+
38
+ # 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