Skip to content

Commit

Permalink
ci: setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Jun 7, 2024
1 parent 0e67f1a commit d1e2e26
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
name: Run tests suite

steps:
- uses: actions/checkout@v2
with:
# We need the full history for gitCreated/gitLastUpdated to works as expected
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v1

- name: Tests
run: ./build.sh test
2 changes: 2 additions & 0 deletions build/Commands/Test.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ type TestCommand() =
interface ICommandLimiter<TestSettings>

override __.Execute(context, settings) =
printfn "CWD: %s" (Environment.CurrentDirectory)

Command.Run(
"dotnet",
CmdLine.empty
Expand Down
1 change: 1 addition & 0 deletions build/EasyBuild.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ManagePackageVersionsCentrally>False</ManagePackageVersionsCentrally>
<ContinuousIntegrationBuild>false</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<Compile Include="Workspace.fs" />
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.204",
"rollForward": "latestMinor"
}
}

0 comments on commit d1e2e26

Please sign in to comment.