Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Specification Check CI"
on:
pull_request:
push:
branches:
- master
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
- name: Run tests
run: nix run .#spec
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kotlinc/
.kotlin/
**/build/
*.log
node_modules/
**/_apalache-out

# Ignore Gradle project-specific cache directory
.gradle
Expand Down
20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
testScript = pkgs.writeShellScriptBin "test" ''
${pkgs.gradle}/bin/gradle test
'';
specScript = pkgs.writeShellScriptBin "spec" ''
${pkgs.quint}/bin/quint run ./spec/raft.qnt --max-steps=50 --mbt --invariants foobar
'';

# kotlinLspPatch = pkgs.writeShellScriptBin "kotlin-language-server" ''
# JAVA_OPTS="-Xms1g -Xmx2g -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UseStringDeduplication" \
Expand All @@ -27,8 +30,23 @@
];
program = "${testScript}/bin/test";
};

apps.spec = {
type = "app";
buildInputs = with pkgs;[
pkgs.quint
pkgs.nodejs
];
program = "${specScript}/bin/spec";
};

devShells.default = pkgs.mkShell {
buildInputs = [
# Quint Spec Deps
pkgs.quint
pkgs.nodejs

# Dev Deps
pkgs.gradle
pkgs.openjdk21
pkgs.kotlin
Expand All @@ -38,6 +56,8 @@

shellHook = ''
export GRADLE_USER_HOME="$PWD/.gradle"
export PATH="$PATH:$(pwd)/node_modules/.bin"
npm install @informalsystems/quint-language-server -D
'';
};
});
Expand Down
Loading