chore: Bump tj-actions/verify-changed-files from bbd436f8e34e14fee2a0f7bc5b14bcc6b40927cf to 54483a2138ca67989bc40785aa22faee8b085894 #3098
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: 'Code Health' | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - name: Set up Go | |
| uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
| with: | |
| go-version-file: 'cfn-resources/go.mod' | |
| - name: Build | |
| run: | | |
| cd cfn-resources | |
| go build -v ./... | |
| mock-generation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - name: Set up Go | |
| uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
| with: | |
| go-version-file: 'cfn-resources/go.mod' | |
| - name: Generate mocks | |
| run: | | |
| make tools generate-mocks | |
| - name: Check for uncommited files | |
| run: | | |
| FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory) | |
| LINES=$(echo "$FILES" | awk 'NF' | wc -l) | |
| if [ "$LINES" -ne 0 ]; then | |
| echo "Detected files that need to be committed:" | |
| echo "$FILES" | while IFS= read -r line; do echo " $line"; done | |
| echo "" | |
| echo "Mock skeletons are not up-to-date, you may have forgotten to run mockery before committing your changes." | |
| exit 1 | |
| fi | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
| with: | |
| go-version-file: 'cfn-resources/go.mod' | |
| cache: false # see https://github.com/golangci/golangci-lint-action/issues/807 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 | |
| with: | |
| version: v1.60.3 # Also update GOLANGCI_VERSION variable in Makefile when updating this version | |
| working-directory: cfn-resources | |
| - name: actionlint | |
| run: | | |
| make tools | |
| actionlint -verbose -color | |
| shell: bash | |
| check-copyright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
| with: | |
| go-version-file: 'cfn-resources/go.mod' | |
| - name: install tools | |
| run: make tools | |
| - name: check copyright | |
| run: ./.github/scripts/check-licenses.sh | |
| shell: bash | |
| dependency-review: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'pull_request' }} | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - name: 'Dependency Review' | |
| uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c | |
| shellcheck: | |
| name: shellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - name: Run ShellCheck | |
| uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4 | |
| cfn-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - name: 'Setup cfn-lint' | |
| uses: scottbrenner/cfn-lint-action@62f1746de817410fa0058034b4c108ac2692ec81 | |
| - name: 'Run cfn-lint' | |
| run: | | |
| shopt -s globstar # enable globbing | |
| cfn-lint | |
| shell: bash | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
| with: | |
| go-version-file: 'cfn-resources/go.mod' | |
| - name: run-unit-test | |
| run: make unit-test |