Add badge (#1)
Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk> Reviewed-on: #1
This commit is contained in:
@@ -4,14 +4,13 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
# Lint
|
# Lint
|
||||||
- nix develop --command dotnet -- tool restore
|
- "nix develop --command bash -c 'dotnet tool restore && ./hooks/pre-push'"
|
||||||
- nix develop --command ./hooks/pre-push
|
|
||||||
# Test
|
# Test
|
||||||
- nix develop --command dotnet -- test
|
- nix develop --command dotnet -- test
|
||||||
- nix develop --command dotnet -- test --configuration Release
|
- nix develop --command dotnet -- test --configuration Release
|
||||||
# Perform build
|
# Perform build
|
||||||
- "pushd RaftFable && nix develop --command npm -- install && popd"
|
- "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:
|
when:
|
||||||
evaluate: '(CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_PIPELINE_EVENT == "pull_request")'
|
evaluate: '(CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_PIPELINE_EVENT == "pull_request")'
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
# Raft
|
# Raft
|
||||||
|
|
||||||
|
|
||||||
|
[](https://woodpecker.patrickstevens.co.uk/api/badges/patrick/raft-fable/status.svg)
|
||||||
|
|
||||||
A Raft implementation in F#.
|
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.
|
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.
|
||||||
|
|
||||||
|
2377
RaftFable/package-lock.json
generated
2377
RaftFable/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^5.88.2",
|
"webpack": "^5.88.2",
|
||||||
"webpack-cli": "^3.3.0",
|
"webpack-cli": "^5.1.4",
|
||||||
"webpack-dev-server": "^4.15.1"
|
"webpack-dev-server": "^4.15.1"
|
||||||
},
|
},
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
|
@@ -12,12 +12,12 @@
|
|||||||
flake-utils,
|
flake-utils,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
flake-utils.lib.eachSystem [flake-utils.lib.system.aarch64-darwin] (system: let
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[pkgs.alejandra pkgs.nodejs pkgs.dotnet-sdk_6]
|
[pkgs.alejandra pkgs.nodejs pkgs.dotnet-sdk_6 pkgs.python3]
|
||||||
++ (
|
++ (
|
||||||
if pkgs.stdenv.isDarwin
|
if pkgs.stdenv.isDarwin
|
||||||
then [pkgs.darwin.apple_sdk.frameworks.CoreServices]
|
then [pkgs.darwin.apple_sdk.frameworks.CoreServices]
|
||||||
|
Reference in New Issue
Block a user