Add badge (#1)

Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #1
This commit is contained in:
2023-08-04 21:08:12 +00:00
parent 2fe35b4ab6
commit e86a48ff90
5 changed files with 278 additions and 2113 deletions

View File

@@ -4,14 +4,13 @@ steps:
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
# Lint
- nix develop --command dotnet -- tool restore
- nix develop --command ./hooks/pre-push
- "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'"
# Test
- nix develop --command dotnet -- test
- nix develop --command dotnet -- test --configuration Release
# Perform build
- "pushd RaftFable && nix develop --command npm -- install && popd"
- "pushd RaftFable && nix develop --command npm -- run-script webpack && popd"
- "pushd RaftFable && nix develop --command npm -- run-script build && popd"
when:
evaluate: '(CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_PIPELINE_EVENT == "pull_request")'

View File

@@ -1,5 +1,8 @@
# Raft
[![CI](https://woodpecker.patrickstevens.co.uk/api/badges/patrick/raft-fable/status.svg)](https://woodpecker.patrickstevens.co.uk/api/badges/patrick/raft-fable/status.svg)
A Raft implementation in F#.
It allows pluggable persistent-store back-ends and communication channels, but out of the box you get an in-memory store and a simulated network.

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,7 @@
},
"devDependencies": {
"webpack": "^5.88.2",
"webpack-cli": "^3.3.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"version": "1.0.0"

View File

@@ -12,12 +12,12 @@
flake-utils,
...
}:
flake-utils.lib.eachSystem [flake-utils.lib.system.aarch64-darwin] (system: let
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
buildInputs =
[pkgs.alejandra pkgs.nodejs pkgs.dotnet-sdk_6]
[pkgs.alejandra pkgs.nodejs pkgs.dotnet-sdk_6 pkgs.python3]
++ (
if pkgs.stdenv.isDarwin
then [pkgs.darwin.apple_sdk.frameworks.CoreServices]