fix(tla-check): support TLC 1.7.4 (#17) #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Skill CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| tla-check: | |
| name: TLC Script Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Shell syntax checks | |
| run: | | |
| set -euo pipefail | |
| bash -n scripts/tests/tla_check_test.sh | |
| bash -n skills/tla-check/scripts/tlc_check.sh | |
| bash -n skills/tla-check/scripts/tlc_trace_summary.sh | |
| - name: Run TLC behavioral tests | |
| run: | | |
| set -euo pipefail | |
| jar_path="$RUNNER_TEMP/tla2tools.jar" | |
| curl --fail --location --silent --show-error --retry 3 \ | |
| https://github.com/tlaplus/tlaplus/releases/download/v1.7.4/tla2tools.jar \ | |
| --output "$jar_path" | |
| printf '%s %s\n' \ | |
| '936a262061c914694dfd669a543be24573c45d5aa0ff20a8b96b23d01e050e88' \ | |
| "$jar_path" | sha256sum --check | |
| ./scripts/tests/tla_check_test.sh --jar "$jar_path" | |
| tla-proof: | |
| name: TLA Proof Script Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Verify required tools | |
| run: | | |
| set -euo pipefail | |
| command -v bash | |
| command -v jq | |
| - name: Shell syntax checks | |
| run: | | |
| set -euo pipefail | |
| bash -n skills/tla-proof/scripts/tlaps_check.sh | |
| bash -n skills/tla-proof/scripts/tests/tlaps_check_test.sh | |
| - name: Run TLAPS runner regression tests | |
| run: | | |
| set -euo pipefail | |
| bash skills/tla-proof/scripts/tests/tlaps_check_test.sh |