Skip to content

Commit 73a0caf

Browse files
authored
Merge pull request #17 from CSBiology/feature-cicd-#13
CI: build & test
2 parents a92e6eb + 3ef7023 commit 73a0caf

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ jobs:
1818
uses: actions/setup-dotnet@v3
1919
with:
2020
dotnet-version: 8.x.x
21+
22+
# to prevent error NU1403: Package content hash validation failed for FSharp.Core.8.0.403. The package is different than the last restore.
23+
- name: Restore dependencies
24+
run: dotnet restore --force-evaluate
25+
2126
- name: make script executable
2227
run: chmod u+x build.sh
28+
2329
- name: Build and test
24-
working-directory: ./
2530
run: ./build.sh runtests
2631

32+
2733
build-and-test-windows:
2834

2935
runs-on: windows-latest
@@ -34,6 +40,11 @@ jobs:
3440
uses: actions/setup-dotnet@v3
3541
with:
3642
dotnet-version: 8.x.x
43+
44+
# to prevent error NU1403: Package content hash validation failed for FSharp.Core.8.0.403. The package is different than the last restore.
45+
- name: Restore dependencies
46+
run: dotnet restore --force-evaluate
47+
3748
- name: Build and test
3849
working-directory: ./
3950
run: ./build.cmd runtests

Ontology.NET.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{CE3D
2525
EndProject
2626
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{F9AB2DC2-AB20-4AC2-A827-82819C82D4FA}"
2727
ProjectSection(SolutionItems) = preProject
28-
build-and-test.yml = build-and-test.yml
28+
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
2929
EndProjectSection
3030
EndProject
3131
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "ControlledVocabulary", "src\ControlledVocabulary\ControlledVocabulary.fsproj", "{27679102-2E6D-4BD9-9DF4-FC101EA6487D}"

tests/Ontology.NET.Tests/OBO/OboOntology.Tests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ module OboOntologyTests =
5959
let testFile1 = try OboOntology.fromFile false testFile1Path |> Some with _ -> None
6060
let testFile2 = try OboOntology.fromFile false testFile2Path |> Some with _ -> None
6161
let testFile3 = try OboOntology.fromFile false testFile3Path |> Some with _ -> None
62-
let testOboFile3Path = Path.Combine(__SOURCE_DIRECTORY__, "references", "testOboFile3.obo")
62+
let testOboFile3Path = Path.Combine(__SOURCE_DIRECTORY__, "References", "testOboFile3.obo")
6363
let testOboFile3 = try OboOntology.fromFile false testOboFile3Path |> Some with _ -> None
64-
let goPath = Path.Combine(__SOURCE_DIRECTORY__, "references", "go.obo")
64+
let goPath = Path.Combine(__SOURCE_DIRECTORY__, "References", "go.obo")
6565
let go = try OboOntology.fromFile false goPath |> Some with _ -> None
6666

6767

tests/Ontology.NET.Tests/Ontology.NET.Tests.fsproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<ItemGroup>
2222
<None Include="OBO\References\testOboFile1.obo" />
2323
<None Include="OBO\References\testOboFile2.obo" />
24-
<None Include="OBO\references\testOboFile3.obo" />
25-
<None Include="OBO\references\testOboFile4.obo" />
26-
<None Include="OBO\references\testOboFile5.obo" />
27-
<None Include="OBO\references\testOboFile6.obo" />
24+
<None Include="OBO\References\testOboFile3.obo" />
25+
<None Include="OBO\References\testOboFile4.obo" />
26+
<None Include="OBO\References\testOboFile5.obo" />
27+
<None Include="OBO\References\testOboFile6.obo" />
2828
<None Include="OBO\References\CorrectHeaderTags.obo" />
2929
<None Include="OBO\References\DuplicateHeaderTags.obo" />
3030
<None Include="OBO\References\IncorrectHeaderTags.obo" />

0 commit comments

Comments
 (0)