Bump Ainut from 04301f7 to 98e4de4 (#759)
#2179
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, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Verify that every submodule can be checked out | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Get python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Verify readable with Python's configparser, which MediaWiki codesearch uses | |
| run: python -c "import configparser as c;c.ConfigParser().read('.gitmodules')" | |
| - name: Verify that the policy is met | |
| run: | | |
| ./policy | |
| git status --porcelain | |
| git status --porcelain | wc -l | |
| git diff | |
| line="$(git status --porcelain | wc -l)" | |
| echo "$line" | |
| if [ "$line" -gt 0 ]; then | |
| echo "Does not meet policy" | |
| exit 1 | |
| fi |