Skip to content

Commit

Permalink
Merge PR #7 from knocte/githubActions
Browse files Browse the repository at this point in the history
Add GitHub actions CI build.
  • Loading branch information
knocte authored Jan 6, 2024
2 parents d8848f5 + 0d4e2c9 commit 2c568f1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
- push
- pull_request

jobs:
build:
name: Build
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
steps:
- uses: actions/checkout@v2
- name: Install required dependencies
run: |
apt update
apt install --yes sudo
sudo apt install --yes --no-install-recommends git
# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'

- name: Setup .NET
run: |
# We need to install `ca-certificates`, otherwise we get these errors in the CI:
# Unable to load the service index for source https://api.nuget.org/v3/index.json.
# The SSL connection could not be established, see inner exception.
# The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
apt install --yes --no-install-recommends ca-certificates
apt install --yes --no-install-recommends dotnet6
- name: Compile the main solution
run: dotnet build
2 changes: 1 addition & 1 deletion FsharpExchange.Tests/FsharpExchange.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="NUnit" Version="3.9.0" />
<PackageReference Include="FSharp.Core" Version="4.5.2" />
<PackageReference Include="FSharp.Core" Version="6.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="StackExchange.Redis" Version="2.0.513" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

<ItemGroup>
<ProjectReference Include="..\FsharpExchangeDotNetStandard\FsharpExchangeDotNetStandard.fsproj" />
<PackageReference Include="FSharp.Core" Version="4.5.2" />
<PackageReference Include="FSharp.Core" Version="6.0.1" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions LICENCE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ The MIT License

Copyright (c) 2017-2018 Gate Digital Services Ltd. (Gatecoin)
Copyright (c) 2018 Diginex Ltd. (www.diginex.com)
Copyright (c) 2017-2024 Andres G. Aragoneses

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 2c568f1

Please sign in to comment.