Skip to content

Commit

Permalink
FileConventions: failing test for unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed Jul 4, 2023
1 parent e418fea commit ef0076b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on: [push, pull_request]

jobs:
file-conventions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: unzip a file
run: unzip -n path-to-file.zip
15 changes: 14 additions & 1 deletion src/FileConventions.Test/FileConventions.Test.fs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ let NonVerboseFlagsInGitHubCI3() =
(FileInfo(
Path.Combine(
dummyFilesDirectory.FullName,
"DummyCIWithAcceptedNonVerboseFlag.yml"
"DummyCIWithAcceptedNonVerboseFlag1.yml"
)
))

Expand Down Expand Up @@ -612,3 +612,16 @@ let NonVerboseFlagsInGitHubCI5() =
))

Assert.That(NonVerboseFlagsInGitHubCI fileInfo, Is.EqualTo false)


[<Test>]
let NonVerboseFlagsInGitHubCI6() =
let fileInfo =
(FileInfo(
Path.Combine(
dummyFilesDirectory.FullName,
"DummyScriptWithAcceptedNonVerboseFlag2.fsx"
)
))

Assert.That(NonVerboseFlagsInGitHubCI fileInfo, Is.EqualTo false)

0 comments on commit ef0076b

Please sign in to comment.