fix(ci): remove pull request branch restriction from CI workflow #88
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
| # LinaPro backend main CI workflow. | |
| # Runs on every push and pull request branch. | |
| name: Main CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| inputs: | |
| debug: | |
| type: boolean | |
| description: 'Enable tmate Debug' | |
| required: false | |
| default: false | |
| # Cancel in-progress runs for the same branch/PR to save CI minutes. | |
| concurrency: | |
| group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
| cancel-in-progress: true | |
| env: | |
| TZ: "Asia/Shanghai" | |
| jobs: | |
| windows-command-smoke: | |
| name: Windows command smoke | |
| uses: ./.github/workflows/reusable-windows-command-smoke.yml | |
| backend-unit-tests: | |
| name: Go unit tests | |
| uses: ./.github/workflows/reusable-backend-unit-tests.yml | |
| frontend-unit-tests: | |
| name: Frontend unit tests | |
| uses: ./.github/workflows/reusable-frontend-unit-tests.yml | |
| # SQLite Backend Smoke Tests | |
| sqlite-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Timezone | |
| run: | | |
| sudo ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
| echo Asia/Shanghai | sudo tee /etc/timezone | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| cache: false | |
| - name: Run SQLite Backend Smoke | |
| run: | | |
| ./hack/tests/scripts/run-sqlite-smoke.sh |