WiP CDK synth workflow #31
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: Build and Test | |
| on: | |
| push: | |
| branches: [github-actions-deploy] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Python setup | |
| uses: ./.github/actions/python-setup | |
| - name: Node setup | |
| uses: ./.github/actions/node-setup | |
| - name: Check Workflows | |
| run: uvx zizmor --format sarif . > zizmor-results.sarif | |
| # ToDo: set up a github_token to do further analysis. See: https://woodruffw.github.io/zizmor/usage/#use-in-github-actions) | |
| # ToDo: Reenable this when I understand what it does. | |
| # - name: Upload SARIF file | |
| # uses: github/codeql-action/upload-sarif@v3 | |
| # with: | |
| # sarif_file: zizmor-results.sarif | |
| # category: zizmor | |
| - name: Pre-test checks | |
| run: uv run scripts/code-check | |
| # ToDo a check for whether the graph needs to be updated. | |
| # Install graphviz | |
| # uv run make_graph.py | |
| # git diff --exit-code || (echo "Please update graph and commit changes." && exit 1) |