Testing Plan Phase 4: Rendezvous #46
Workflow file for this run
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: Run Tests & Update Coverage | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches-ignore: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate artifacts and run tests | |
| run: | | |
| pnpm generate | |
| pnpm test -- --coverage | |
| - name: Normalize lcov.info paths and commit coverage report | |
| if: github.event_name == 'push' | |
| run: | | |
| # Convert absolute CI paths to relative paths for local compatibility | |
| sed -i "s|$(pwd)/||g" lcov.info | |
| git config user.email "action@github.com" | |
| git config user.name "GitHub Action" | |
| git add lcov.info | |
| if ! git diff --staged --quiet; then | |
| git commit -m "Update coverage report [skip ci]" | |
| git push origin HEAD:${{ github.ref_name }} | |
| else | |
| echo "No coverage changes to commit." | |
| fi | |
| rendezvous: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run smart-wallet-standard Rendezvous invariant testing | |
| run: npx rv . smart-wallet-standard invariant --runs=1000 | |
| - name: Run smart-wallet-standard Rendezvous property-based testing | |
| run: npx rv . smart-wallet-standard test --runs=1000 | |
| - name: Run csw-registry Rendezvous invariant testing | |
| run: npx rv . csw-registry invariant --runs=1000 | |
| - name: Run csw-registry Rendezvous property-based testing | |
| run: npx rv . csw-registry test --runs=1000 |