🌱 Digital Garden

Where my ideas grow. A permanent Work In Progress.

Github Actions tips

Evaluate Expressions I have an action that takes a URL input, like https://docs.github.com/en/enterprise-cloud@latest/actions/learn-github-actions/expressions on: workflow_call: inputs: url_endpoint: # http://my-endpoint.com/something required: false type: string jobs: defaults: run: shell: bash steps: - name: Checkout sources uses: actions/checkout@v2 with: path: some-path repository: ${{ env.TEST_PLAN_REPO }} ref: ${{ env.TEST_PLAN_BRANCH }} - name: call external action uses: some/action@v1.0 with: backend_addr: ${{ ??? }} # my-endpoint.com/something backend_proto: ${{ ??? }} # http How to tell if an expression is empty?


Getting Started with Rust

I’m learning Rust by updating a library, this is tricky. Resources to get started Basics: https://doc.rust-lang.org/rust-by-example/mod/use.html Async Programming: https://rust-lang.github.io/async-book/01_getting_started/02_why_async.html Notes on Async Rust async execution is explicit and make sense: futures are inert, they don’t run if you’re not waiting for their result. Much different from JS for example: I never found a precise description of what happen to an async that is not await’d for. Open Questions What is the ?


Quick Go Dump

I am working on porting a Go SDK to Rust. My goal right now is to figure out the I/Os of a certain SDK function and replicate it in go. I’m an lucky the previous maintainers provided an in memory client, which I should be able to override and json dump all the I/Os, which should become the input for my rust SDK tests. Example This is the commit where I test this approach: