CI #8
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| merge_group: | |
| types: | |
| - checks_requested | |
| schedule: | |
| - cron: 0 15 * * * | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| compile: | |
| name: Compile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| with: | |
| github_token: ${{ github.token }} | |
| cache: true | |
| - name: Setup | |
| run: mise setup | |
| - name: Compile | |
| run: mise run compile | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| with: | |
| github_token: ${{ github.token }} | |
| cache: true | |
| - name: Setup | |
| run: mise setup | |
| - name: Run format | |
| run: mise run format | |
| - name: Verify no diff | |
| run: git diff --exit-code |