From 6c23cd2df2f1032b71fd94b52356f2a892ad4f49 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 28 Apr 2021 03:26:27 +0300 Subject: workflows/test: add job "shell: SHELLOPTS" --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d00d04..14a8134 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -76,8 +76,8 @@ jobs: python3.exe --version if: matrix.hardlinks - shell: - name: 'shell:' + shell_igncr: + name: 'shell: -o igncr' runs-on: windows-2019 steps: - name: Checkout @@ -98,3 +98,28 @@ jobs: } basic shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}' + + shell_shellopts: + name: 'shell: SHELLOPTS' + runs-on: windows-2019 + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Clean up PATH + uses: egor-tensin/cleanup-path@v1 + if: runner.os == 'Windows' + + - name: Set up Cygwin + uses: ./ + + - name: Run basic commands + run: | + basic() { + ls -Al + pwd + } + basic + shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail '{0}' + env: + SHELLOPTS: igncr -- cgit v1.2.3