|
| 1 | +name: Check new beta version |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + schedule: |
| 6 | + - cron: "40 */1 * * *" |
| 7 | +env: |
| 8 | + LATEST: "" |
| 9 | +permissions: |
| 10 | + contents: "write" |
| 11 | + |
| 12 | +jobs: |
| 13 | + Check-Beta-Version: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + outputs: |
| 16 | + win_reportable: ${{ steps.reportable.outputs.win }} |
| 17 | + mac_reportable: ${{ steps.reportable.outputs.mac }} |
| 18 | + mac_l10n_reportable: ${{ steps.l10n-reportable.outputs.mac_l10n }} |
| 19 | + win_l10n_reportable: ${{ steps.l10n-reportable.outputs.win_l10n }} |
| 20 | + linux_l10n_reportable: ${{ steps.l10n-reportable.outputs.linux_l10n }} |
| 21 | + steps: |
| 22 | + - name: Checkout repository |
| 23 | + uses: actions/checkout@v4 |
| 24 | + - name: Check if the l10n run is reportable |
| 25 | + id: l10n-reportable |
| 26 | + env: |
| 27 | + TESTRAIL_REPORT: true |
| 28 | + FX_L10N: true |
| 29 | + TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }} |
| 30 | + TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }} |
| 31 | + TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }} |
| 32 | + run: | |
| 33 | + pip3 install 'pipenv==2023.11.15'; |
| 34 | + pipenv install |
| 35 | + echo win_l10n=$(pipenv run python -c 'from modules import testrail_integration as tri; print(tri.reportable("Windows"))') >> "$GITHUB_OUTPUT" |
| 36 | + echo mac_l10n=$(pipenv run python -c 'from modules import testrail_integration as tri; print(tri.reportable("Darwin"))') >> "$GITHUB_OUTPUT" |
| 37 | + echo linux_l10n=$(pipenv run python -c 'from modules import testrail_integration as tri; print(tri.reportable("Linux"))') >> "$GITHUB_OUTPUT" |
| 38 | +
|
| 39 | + Run-L10N-Mac-Smoke: |
| 40 | + needs: Check-Beta-Version |
| 41 | + if: ${{ needs.Check-Beta-Version.outputs.mac_l10n_reportable == 'True' }} |
| 42 | + uses: ./.github/workflows/l10n.yml |
| 43 | + with: |
| 44 | + job_to_run: L10N-MacOS |
| 45 | + secrets: inherit |
| 46 | + |
| 47 | + Run-L10N-Win-Smoke: |
| 48 | + needs: Check-Beta-Version |
| 49 | + if: ${{ needs.Check-Beta-Version.outputs.win_l10n_reportable == 'True' }} |
| 50 | + uses: ./.github/workflows/l10n.yml |
| 51 | + with: |
| 52 | + job_to_run: L10N-Windows |
| 53 | + secrets: inherit |
| 54 | + |
| 55 | + Run-L10N-Linux-Smoke: |
| 56 | + needs: Check-Beta-Version |
| 57 | + if: ${{ needs.Check-Beta-Version.outputs.linux_l10n_reportable == 'True' }} |
| 58 | + uses: ./.github/workflows/l10n.yml |
| 59 | + with: |
| 60 | + job_to_run: L10N-Linux |
| 61 | + secrets: inherit |
0 commit comments