GHA: Use plone/meta shared workflows (Fixes #102) (#103) #3
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 pas.plugins.authomatic | |
| on: | |
| push: | |
| jobs: | |
| config: | |
| name: "Compute configuration values" | |
| uses: ./.github/workflows/config.yml | |
| lint: | |
| name: "Lint codebase" | |
| uses: plone/meta/.github/workflows/[email protected] | |
| needs: | |
| - config | |
| with: | |
| python-version: ${{ needs.config.outputs.python-version }} | |
| plone-version: ${{ needs.config.outputs.plone-version }} | |
| test: | |
| name: "Test codebase" | |
| uses: plone/meta/.github/workflows/[email protected] | |
| needs: | |
| - config | |
| strategy: | |
| matrix: | |
| python-version: ["3.13", "3.12", "3.11", "3.10"] | |
| plone-version: ["6.1-latest", "6.0-latest"] | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| plone-version: ${{ matrix.plone-version }} | |
| coverage: | |
| name: "Backend: Coverage" | |
| uses: plone/meta/.github/workflows/[email protected] | |
| needs: | |
| - config | |
| - test | |
| with: | |
| python-version: ${{ needs.config.outputs.python-version }} | |
| plone-version: ${{ needs.config.outputs.plone-version }} | |
| report: | |
| name: "Final report" | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| needs: | |
| - config | |
| - lint | |
| - test | |
| - coverage | |
| steps: | |
| - name: Report | |
| shell: bash | |
| run: | | |
| echo '# Workflow Report' >> $GITHUB_STEP_SUMMARY | |
| echo '| Job ID | Conclusion |' >> $GITHUB_STEP_SUMMARY | |
| echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY | |
| echo '| Config | ${{ needs.config.result }} |' >> $GITHUB_STEP_SUMMARY | |
| echo '| Lint | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY | |
| echo '| Test | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY | |
| echo '| Coverage | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY |