chore: add pre-commit hooks #59
Workflow file for this run
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: TxMA Event Mock - Pull Request Checks | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - ready_for_review | |
| - synchronize | |
| paths: | |
| - txma-mock/** | |
| - .github/workflows/txma-mock-pull-request-checks.yml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-sam-template-formatting: | |
| name: Check SAM template formatting | |
| uses: ./.github/workflows/check-sam-template-formatting.yml | |
| with: | |
| working-directory: ./txma-mock | |
| run-checkov: | |
| name: Run Checkov | |
| uses: ./.github/workflows/run-checkov.yml | |
| with: | |
| file-to-scan: txma-mock/template.yaml | |
| validate-and-build-sam-template: | |
| name: Validate and build SAM template | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| env: | |
| SAM_CLI_TELEMETRY: 0 | |
| defaults: | |
| run: | |
| working-directory: ./txma-mock | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up SAM CLI | |
| uses: aws-actions/setup-sam@89ddb14d60e682855e3fea4be85b3c56485de310 # v3 | |
| with: | |
| version: 1.155.2 | |
| use-installer: true | |
| - name: Validate SAM template | |
| run: sam validate --lint | |
| - name: Build SAM template | |
| run: sam build |