CI #9589
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: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '*/30 * * * *' # Runs in every 30 minutes | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| runner: ["ubuntu-24.04-ppc64le", "ubuntu-24.04-ppc64le-p10"] | |
| fail-fast: false | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run a one-line script | |
| run: echo "Hello, world! GitHub app is running successfully on ${{ matrix.runner }}" | |
| code-quality: | |
| name: Code quality | |
| strategy: | |
| matrix: | |
| runner: ["ubuntu-24.04-ppc64le", "ubuntu-24.04-ppc64le-p10"] | |
| fail-fast: false | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run linting | |
| run: | | |
| if [ -x run_linting.sh ]; then | |
| bash run_linting.sh | |
| else | |
| echo "Skipping linting: run_linting.sh not found or not executable" | |
| fi | |
| notify: | |
| name: Notify failed build | |
| needs: | |
| - code-quality | |
| - build | |
| if: failure() && github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: jayqi/failed-build-issue-action@v1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |