09679f0156
* fix: give case insensitive secret more meanigful name * refactor: use `string` in generating `env:` and `steps:` for workflows Smaller text generation is much better to read with normal strings than raw string literals. * feat: sort keys for `env:` so it's always in specific order * fix: update test workflows
89 lines
3.6 KiB
YAML
89 lines
3.6 KiB
YAML
|
|
name: "Test how expressions are handled on Github"
|
|
on: push
|
|
|
|
env:
|
|
ACT: true
|
|
KEY-WITH-HYPHENS: value-with-hyphens
|
|
KEYWITHNOTHING: valuewithnothing
|
|
KEY_WITH_UNDERSCORES: value_with_underscores
|
|
SOMETHING_FALSE: false
|
|
SOMETHING_TRUE: true
|
|
|
|
|
|
jobs:
|
|
test-espressions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: €{{ 1 }} to €{{ 2 }} -> ${{1}} to ${{2}} should be equal to 1 to 2
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.KEYWITHNOTHING }} -> ${{ env.KEYWITHNOTHING }} should be equal to valuewithnothing
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.KEY-WITH-HYPHENS }} -> ${{ env.KEY-WITH-HYPHENS }} should be equal to value-with-hyphens
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.KEY_WITH_UNDERSCORES }} -> ${{ env.KEY_WITH_UNDERSCORES }} should be equal to value_with_underscores
|
|
run: echo "Done "
|
|
|
|
- name: €{{ secrets.CASE_INSENSITIVE_SECRET }} -> ${{ secrets.CASE_INSENSITIVE_SECRET }} should be equal to value
|
|
run: echo "Done "
|
|
|
|
- name: €{{ secrets.case_insensitive_secret }} -> ${{ secrets.case_insensitive_secret }} should be equal to value
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.UNKNOWN }} -> ${{ env.UNKNOWN }} should be equal to
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_TRUE }} -> ${{ env.SOMETHING_TRUE }} should be equal to true
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_FALSE }} -> ${{ env.SOMETHING_FALSE }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_TRUE }} -> ${{ !env.SOMETHING_TRUE }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_FALSE }} -> ${{ !env.SOMETHING_FALSE }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_TRUE && true }} -> ${{ !env.SOMETHING_TRUE && true }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_FALSE && true }} -> ${{ !env.SOMETHING_FALSE && true }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_TRUE && true }} -> ${{ env.SOMETHING_TRUE && true }} should be equal to true
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_FALSE && true }} -> ${{ env.SOMETHING_FALSE && true }} should be equal to true
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_TRUE || true }} -> ${{ !env.SOMETHING_TRUE || true }} should be equal to true
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_FALSE || true }} -> ${{ !env.SOMETHING_FALSE || true }} should be equal to true
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_TRUE && false }} -> ${{ !env.SOMETHING_TRUE && false }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_FALSE && false }} -> ${{ !env.SOMETHING_FALSE && false }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_TRUE || false }} -> ${{ !env.SOMETHING_TRUE || false }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ !env.SOMETHING_FALSE || false }} -> ${{ !env.SOMETHING_FALSE || false }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_TRUE || false }} -> ${{ env.SOMETHING_TRUE || false }} should be equal to true
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_FALSE || false }} -> ${{ env.SOMETHING_FALSE || false }} should be equal to false
|
|
run: echo "Done "
|
|
|
|
- name: €{{ env.SOMETHING_FALSE }} && €{{ env.SOMETHING_TRUE }} -> ${{ env.SOMETHING_FALSE }} && ${{ env.SOMETHING_TRUE }} should be equal to false && true
|
|
run: echo "Done "
|