fix(release): Trigger Homebrew update on publish + bump to v0.0.34 (#… #996
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: | |
| - main | |
| - master | |
| pull_request: | |
| paths: | |
| - 'sourcecode-parser/**' | |
| - 'playground/**' | |
| - 'pathfinder-rules/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.3' | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.14' | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Install codepathfinder Python package | |
| run: pip install codepathfinder==1.0.0 | |
| - name: Get dependencies | |
| run: | | |
| cd sourcecode-parser | |
| go mod download | |
| - name: Test | |
| run: | | |
| cd sourcecode-parser | |
| go test -p 2 -v ./... -coverprofile=coverage.out -covermode=atomic | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| golangci: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: sourcecode-parser | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.3' | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.5.0 | |
| working-directory: sourcecode-parser |