fix(ci): restore working trunk config on main (#629) #82
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
| # ============================================================================= | |
| # Trunk Check — Unified linting/formatting in GitHub Actions | |
| # ============================================================================= | |
| # Handles: ruff, mypy, clippy, golangci-lint, prettier, eslint, shellcheck, etc. | |
| # Free for open source; cached for fast runs | |
| # ============================================================================= | |
| name: Trunk Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, develop] | |
| schedule: | |
| - cron: '0 3 * * 1' # Weekly Monday 3am UTC | |
| concurrency: | |
| group: trunk-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| trunk-check: | |
| name: Lint & Format | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Trunk Check | |
| uses: trunk-io/trunk-action@04ba50e7658c81db7356da96657e6e77f220bfa3 # v1.3.1 | |
| - name: Trunk Upgrade (on schedule only) | |
| if: github.event_name == 'schedule' | |
| uses: trunk-io/trunk-action@04ba50e7658c81db7356da96657e6e77f220bfa3 # v1.3.1 | |
| with: | |
| trunk-args: --upgrade |