feat: add Trunk CI configuration and related files #1
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: Trunk Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "**" | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| trunk: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Trunk | |
| run: | | |
| curl -fsSL https://get.trunk.io -o install.sh | |
| chmod +x install.sh | |
| ./install.sh | |
| - name: Run Trunk Check | |
| run: trunk check |