Merge pull request #8 from ImL1s/docs-release-ci-limits #11
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| repo-sanity: | |
| name: Repository sanity | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: pip | |
| - name: Install Python dependencies | |
| run: python -m pip install -r requirements.txt | |
| - name: Python compile check | |
| run: python -m py_compile build.py package.py sysroot.py utils.py scripts/ci/check_repo.py | |
| - name: Shell syntax check | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| bash -n install_flutter_complete.sh | |
| bash -n scripts/install/install.sh | |
| bash -n scripts/install/install_termux_flutter.sh | |
| bash -n scripts/install/post_install.sh | |
| bash -n scripts/test/gh_e2e_test.sh | |
| bash -n scripts/device/termux_smoke.sh | |
| - name: PowerShell syntax check | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = 'Stop' | |
| $null = [scriptblock]::Create((Get-Content scripts/device/run_termux_smoke.ps1 -Raw)) | |
| - name: Repository contract checks | |
| run: python scripts/ci/check_repo.py | |
| - name: Diff whitespace check | |
| run: git diff --check |