Repository navigation
chore: release v0.7.0 #5
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: hook contract tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - run: node --test tests/*.test.mjs | |
| fixtures-drift: | |
| name: fixtures match lich | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Refresh from omartelo/lich@main | |
| run: tests/refresh-fixtures.sh | |
| - name: Fail if the vendored copies drifted | |
| run: | | |
| git diff --exit-code -- tests/fixtures || { | |
| echo "::error::A hook contract moved in lich. Run tests/refresh-fixtures.sh, then make the scripts match." | |
| exit 1 | |
| } |