fix: stop feedback scanner from bouncing Jira labels #168
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: "Unit Tests" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46 | |
| with: | |
| files_ignore: | | |
| README.md | |
| docs/** | |
| .github/** | |
| *.md | |
| LICENSE | |
| - name: Set up Go | |
| if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| cache: true | |
| - name: Download dependencies | |
| if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
| run: go mod download | |
| - name: Configure git | |
| if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
| run: | | |
| git config --global user.name "Test User" | |
| git config --global user.email "test@example.com" | |
| - name: Run tests with race detector | |
| if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
| run: make unit-test | |
| - name: Build | |
| if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
| run: go build -o /dev/null . |