Changed mermaid diagram to PNG and changed paths to support paths in Blog post URLs #296
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: Test rule-keeper and check post validity and tags recommendations | |
| on: | |
| pull_request: | |
| branches: | |
| - "master" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Fetch history of master branch | |
| run: git fetch origin master:master --depth=1 | |
| - name: Build docker image | |
| run: docker build ./rule-keeper/ -t rule-keeper | |
| - name: Test Rule Keeper | |
| run: docker run -v ./rule-keeper:/usr/src/app:ro rule-keeper python -m unittest | |
| - name: Test content | |
| run: docker run -v .:/usr/src/app:ro rule-keeper python rule-keeper/main.py |