Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Mar 5, 2024
1 parent 67df144 commit e555075
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Core

on:
pull_request:
- opened
- reopened
- synchronize
- labeled
workflow_dispatch:
schedule:
- cron: '15 23 * * *' # every day @ 23:15
Expand All @@ -20,6 +24,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
Expand Down Expand Up @@ -183,15 +197,17 @@ jobs:
core_device_test:
name: Device tests
runs-on: ubuntu-latest
needs: core_emu
needs:
- core_emu
- param
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
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:
Expand Down

0 comments on commit e555075

Please sign in to comment.