lee/windward #289
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: check | |
| on: push | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v5 | |
| - name: clone hashcards repo locally | |
| run: git clone https://github.com/eudoxia0/hashcards.git /opt/hashcards | |
| - name: install hashcards | |
| run: | | |
| make | |
| sudo make install | |
| working-directory: /opt/hashcards | |
| - run: make | |
| - name: check for uncommitted changes | |
| run: | | |
| if [[ -n $(git status --porcelain) ]]; then | |
| echo "Error: Generated files are out of date!" | |
| echo "The following files have changes:" | |
| git status --porcelain | |
| echo "" | |
| echo "Please run 'make' locally and commit the updated files." | |
| exit 1 | |
| else | |
| echo "Success: All generated files are up to date." | |
| fi | |
| - name: check card integrity | |
| run: make check |