diff --git a/build-and-test.yml b/.github/workflows/build-and-test.yml similarity index 61% rename from build-and-test.yml rename to .github/workflows/build-and-test.yml index f19839c..8fea219 100644 --- a/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -18,12 +18,18 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 8.x.x + + # to prevent error NU1403: Package content hash validation failed for FSharp.Core.8.0.403. The package is different than the last restore. + - name: Restore dependencies + run: dotnet restore --force-evaluate + - name: make script executable run: chmod u+x build.sh + - name: Build and test - working-directory: ./ run: ./build.sh runtests + build-and-test-windows: runs-on: windows-latest @@ -34,6 +40,11 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 8.x.x + + # to prevent error NU1403: Package content hash validation failed for FSharp.Core.8.0.403. The package is different than the last restore. + - name: Restore dependencies + run: dotnet restore --force-evaluate + - name: Build and test working-directory: ./ run: ./build.cmd runtests diff --git a/Ontology.NET.sln b/Ontology.NET.sln index 956b2cb..47c8c5c 100644 --- a/Ontology.NET.sln +++ b/Ontology.NET.sln @@ -25,7 +25,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{CE3D EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{F9AB2DC2-AB20-4AC2-A827-82819C82D4FA}" ProjectSection(SolutionItems) = preProject - build-and-test.yml = build-and-test.yml + .github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml EndProjectSection EndProject Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "ControlledVocabulary", "src\ControlledVocabulary\ControlledVocabulary.fsproj", "{27679102-2E6D-4BD9-9DF4-FC101EA6487D}" diff --git a/tests/Ontology.NET.Tests/OBO/OboOntology.Tests.fs b/tests/Ontology.NET.Tests/OBO/OboOntology.Tests.fs index a37fd55..a4ce412 100644 --- a/tests/Ontology.NET.Tests/OBO/OboOntology.Tests.fs +++ b/tests/Ontology.NET.Tests/OBO/OboOntology.Tests.fs @@ -59,9 +59,9 @@ module OboOntologyTests = let testFile1 = try OboOntology.fromFile false testFile1Path |> Some with _ -> None let testFile2 = try OboOntology.fromFile false testFile2Path |> Some with _ -> None let testFile3 = try OboOntology.fromFile false testFile3Path |> Some with _ -> None - let testOboFile3Path = Path.Combine(__SOURCE_DIRECTORY__, "references", "testOboFile3.obo") + let testOboFile3Path = Path.Combine(__SOURCE_DIRECTORY__, "References", "testOboFile3.obo") let testOboFile3 = try OboOntology.fromFile false testOboFile3Path |> Some with _ -> None - let goPath = Path.Combine(__SOURCE_DIRECTORY__, "references", "go.obo") + let goPath = Path.Combine(__SOURCE_DIRECTORY__, "References", "go.obo") let go = try OboOntology.fromFile false goPath |> Some with _ -> None diff --git a/tests/Ontology.NET.Tests/Ontology.NET.Tests.fsproj b/tests/Ontology.NET.Tests/Ontology.NET.Tests.fsproj index 0b1b24f..e16ac71 100644 --- a/tests/Ontology.NET.Tests/Ontology.NET.Tests.fsproj +++ b/tests/Ontology.NET.Tests/Ontology.NET.Tests.fsproj @@ -21,10 +21,10 @@ - - - - + + + +