Easy workflow file for setting up GitHub Actions CI for your Julia package

Does anyone know how to configure a configuration specific environment variable?
It seems that my attempt here failed https://github.com/FluxML/NNlib.jl/pull/246
(the ubuntu configuration with JULIA_NUM_THREADS: 2 was not spawn)