waildcard match sequence verified #3
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: Dafny | |
| on: | |
| push: | |
| branches: [main, lemmascript] | |
| pull_request: | |
| branches: [main, lemmascript] | |
| jobs: | |
| dafny: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Clone LemmaScript | |
| run: git clone https://github.com/midspiral/LemmaScript.git ../LemmaScript | |
| - name: Install LemmaScript tools | |
| run: cd ../LemmaScript/tools && npm ci | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Setup Dafny | |
| uses: dafny-lang/setup-dafny-action@v1 | |
| with: | |
| dafny-version: '4.11.0' | |
| - name: Regenerate and verify Dafny | |
| run: ../LemmaScript/tools/check.sh dafny | |
| - name: Check generated files are up to date | |
| run: | | |
| git diff --exit-code -- '*.dfy.gen' '*.dfy' | |
| untracked=$(git ls-files --others --exclude-standard -- '*.dfy.gen') | |
| if [ -n "$untracked" ]; then | |
| echo "ERROR: Untracked generated Dafny files:" | |
| echo "$untracked" | |
| exit 1 | |
| fi |