Skip to content

add a tlc workflow

add a tlc workflow #1

name: TLA+ Model Checking
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
model_check:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Install Java (TLC requires Java to run)
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
# Run the TLA+ Model Checker (TLC)
- name: Run TLC model checker
run: |
wget https://github.com/tlaplus/tlaplus/releases/latest/download/tla2tools.jar
java -cp tla2tools.jar tlc2.TLC -deadlock -config p2p.cfg p2p.tla