Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firmware/tests: test against bitbox02 simulator #97

Merged
merged 4 commits into from
Jul 8, 2024

Commits on Jul 3, 2024

  1. go: update to Go 1.21

    So we can use sync.OnceValues
    benma committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    994c9b7 View commit details
    Browse the repository at this point in the history
  2. firmware/tests: test against bitbox02 simulators

    The simulators are downloaded base on the simulators.json file if the
    file does not exist (or the hash is wrong).
    
    This allows us to exercise the library much more easily without
    needing to mock everything, as the simulator behaves like the real
    BitBox02 for the most part.
    
    We could automatically download all releases by using the GitHub
    releases
    API (https://api.github.com/repos/BitBoxSwiss/bitbox02-firmware/releases),
    but the downside is that there would be network requests each time you
    run the unit tests. For now we simply keep the list manually.
    
    The simulators are only released for linux-amd64 for now, so we skip
    tests if we are not running in this environment.
    benma committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    2fc73dd View commit details
    Browse the repository at this point in the history
  3. .github: bump actions to v4

    v3 being deprecated.
    benma committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    a6fa5be View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c71efc6 View commit details
    Browse the repository at this point in the history