diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index d35a3606928..7341adee8ba 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -2,6 +2,11 @@ name: Core on: pull_request: + types: + - opened + - reopened + - synchronize + - labeled workflow_dispatch: schedule: - cron: '15 23 * * *' # every day @ 23:15 @@ -20,6 +25,16 @@ env: |All |[main](https://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}/index.html)([screens](https://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}/master_diff.html)) || jobs: + param: + name: Determine pipeline parameters + runs-on: ubuntu-latest + outputs: + test_lang: ${{ steps.set_lang.outputs.test_lang }} + steps: + - id: set_lang + run: | + echo test_lang=${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'tests' && '["en", "cs", "fr", "de", "es"]' || '["en"]' }} >> $GITHUB_OUTPUT + core_firmware: name: Build firmware runs-on: ubuntu-latest @@ -183,7 +198,9 @@ jobs: core_device_test: name: Device tests runs-on: ubuntu-latest - needs: core_emu + needs: + - core_emu + - param strategy: fail-fast: false matrix: @@ -191,7 +208,7 @@ jobs: coins: [universal, btconly] asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }} # lang: ${{ fromJSON(github.event_name == 'schedule' && '["en", "cs", "fr", "de", "es"]' || '["en"]') }} - lang: [en, cs, fr, de, es] + lang: ${{ fromJSON(needs.param.outputs.test_lang) }} # T2B1 fails due to https://github.com/trezor/trezor-firmware/issues/3280 # remove after single global layout is implemented (or bug above fixed): exclude: