Commit 7dbb3ed 1 parent 1fb3e34 commit 7dbb3ed Copy full SHA for 7dbb3ed
File tree 4 files changed +32
-6
lines changed
4 files changed +32
-6
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,17 @@ vendor
36
36
# macOS
37
37
.DS_Store
38
38
39
- # Ignore literally everything other than the stencil.yaml file in the tests dir
39
+ # Ignore literally everything under the tests directory (except the README) -- specifically include the dir and stencil.yaml file
40
+ # for each test case in the ignores block below
40
41
tests/*
41
- !tests/**/stencil.yaml
42
+ !tests/README.md
42
43
43
44
## <<Stencil::Block (ignores) >>
45
+ { {- if file.Block " ignores" } }
44
46
{ { file.Block " ignores" } }
47
+ { {- else } }
48
+ !tests/basic
49
+ tests/basic/*
50
+ !tests/basic/stencil.yaml
51
+ { {- end } }
45
52
## <</Stencil::Block >>
Original file line number Diff line number Diff line change @@ -3,22 +3,28 @@ nodejs = "22"
3
3
yarn = "1.22.22"
4
4
5
5
[tasks.cleantest]
6
- description = "Clean the test directory"
7
- dir = "test"
8
- run = ["git clean -xdf"]
6
+ description = "Helper to clean the test directory"
7
+ dir = "tests"
8
+ run = """
9
+ #!/usr/bin/env bash
10
+ for dir in ./*/ ; do
11
+ (cd "$dir" && git clean -xdf);
12
+ done
13
+ """
9
14
10
15
[tasks.buildtest]
11
16
description = 'Build the Test templates'
17
+ dir = "tests"
12
18
run = """
13
19
#!/usr/bin/env bash
14
- cd tests
15
20
for dir in ./*/ ; do
16
21
(cd "$dir" && stencil);
17
22
done
18
23
"""
19
24
20
25
[tasks.runtest]
21
26
description = 'Run the tests'
27
+ dir = "tests"
22
28
## <<Stencil::Block (runTests) >>
23
29
{ {- if (empty (file.Block " runTests" )) } }
24
30
env = { ENV_VAR_NAME = ' hooray' } # env vars for the script
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ { {- file.Once -} }
2
+ # yaml-language-server: $schema=https://stencil.rgst.io/static/stencil.jsonschema.json
3
+ name: { { .Config.Name } }-test
4
+ arguments:
5
+ description: Test folder for validating changes to { { .Config.Name } }
6
+ owner: { { stencil.Arg " owner" } }
7
+ ## <<Stencil::Block (arguments) >>
8
+ { { file.Block " arguments" } }
9
+ ## <</Stencil::Block >>
10
+ modules:
11
+ - name: github.com/udemy/{ { .Config.Name } }
12
+ replacements:
13
+ github.com/udemy/{ { .Config.Name } }: ../../
You can’t perform that action at this time.
0 commit comments