@@ -13,21 +13,51 @@ module Assert =
13
13
| None -> failtest msg
14
14
15
15
let private tryFindFile file ( d : DirectoryInfo ) =
16
- d.GetFiles ( )
17
- |> Seq.tryFind ( fun x -> x.Name = file )
18
- |> failIfNoneWithMsg ( sprintf " Could not find %s in %s " file d.FullName )
16
+ let filepath = Path.Combine ( d.FullName , file )
17
+ if filepath |> File.Exists |> not then
18
+ failtestf " Could not find %s " filepath
19
19
20
20
let ``project can build target`` target ( d : DirectoryInfo ) =
21
21
Builds.executeBuild d.FullName target
22
22
23
- let ``.editorconfig exists`` ( d : DirectoryInfo ) =
24
- tryFindFile " .editorconfig " d
23
+ let ``.config / dotnet - tools.json exists`` =
24
+ tryFindFile " .config/dotnet-tools.json "
25
25
26
- let ``.gitattributes exists`` ( d : DirectoryInfo ) =
27
- tryFindFile " .gitattributes " d
26
+ let ``.github ISSUE_TEMPLATE bug_report exists`` =
27
+ tryFindFile " .github/ISSUE_TEMPLATE/bug_report.md "
28
28
29
- let ``paket.lock exists`` ( d : DirectoryInfo ) =
30
- tryFindFile " paket.lock " d
29
+ let ``.github ISSUE_TEMPLATE feature_request exists`` =
30
+ tryFindFile " .github/ISSUE_TEMPLATE/feature_request.md "
31
31
32
- let ``paket.dependencies exists`` ( d : DirectoryInfo ) =
33
- tryFindFile " paket.dependencies" d
32
+ let ``.github workflows build exists`` =
33
+ tryFindFile " .github/workflows/build.yml"
34
+
35
+ let ``.github ISSUE_TEMPLATE exists`` =
36
+ tryFindFile " .github/ISSUE_TEMPLATE.md"
37
+
38
+ let ``.github PULL_REQUEST_TEMPLATE exists`` =
39
+ tryFindFile " .github/PULL_REQUEST_TEMPLATE.md"
40
+
41
+ let ``.editorconfig exists`` =
42
+ tryFindFile " .editorconfig"
43
+
44
+ let ``.gitattributes exists`` =
45
+ tryFindFile " .gitattributes"
46
+
47
+ let ``.gitignore exists`` =
48
+ tryFindFile " .gitignore"
49
+
50
+ let ``LICENSE exists`` =
51
+ tryFindFile " LICENSE.md"
52
+
53
+ let ``paket.lock exists`` =
54
+ tryFindFile " paket.lock"
55
+
56
+ let ``paket.dependencies exists`` =
57
+ tryFindFile " paket.dependencies"
58
+
59
+ let ``README exists`` =
60
+ tryFindFile " README.md"
61
+
62
+ let ``RELEASE_NOTES exists`` =
63
+ tryFindFile " RELEASE_NOTES.md"
0 commit comments