diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-03 18:24:31 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-03 18:24:31 +0300 |
commit | d9b45e8ed212b486afdc30a87191d126295a992e (patch) | |
tree | f28516536c4b2e8ab2fc1079b8c489708b3bc6f3 /.github | |
parent | choco scripting best practices (diff) | |
download | setup-cygwin-d9b45e8ed212b486afdc30a87191d126295a992e.tar.gz setup-cygwin-d9b45e8ed212b486afdc30a87191d126295a992e.zip |
workflows/test.yml: add an example using shell:
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41c4079..831844f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,6 @@ jobs: if: runner.os == 'Windows' - name: Set up Cygwin - id: setup uses: ./ with: platform: '${{ matrix.platform }}' @@ -76,3 +75,23 @@ jobs: $((Get-Command python3.exe).Path -eq 'C:\cg\bin\python3.exe') -or $(throw (Get-Command python3.exe)) python3.exe --version if: matrix.hardlinks + + shell: + name: 'shell:' + 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: | + ls -Al + pwd + shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}' |