diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 10:50:22 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 10:50:22 +0300 |
commit | cf202bdff06d1ba4d7348dfd62c50d574e0eb923 (patch) | |
tree | 89f65095dc168581a785fcc2f93a9d10e1011cb3 | |
parent | README: fix badge link (diff) | |
download | windows-env-cf202bdff06d1ba4d7348dfd62c50d574e0eb923.tar.gz windows-env-cf202bdff06d1ba4d7348dfd62c50d574e0eb923.zip |
workflows/ci: linting
-rw-r--r-- | .github/workflows/ci.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10bafa4..397b1f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,13 @@ jobs: platform: [x86_64, i386] runs-on: windows-latest name: 'Build: ${{ matrix.platform }}' + defaults: + run: + shell: pwsh env: platform: '${{ matrix.platform }}' global_env: 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' user_env: 'HKCU:\Environment' - defaults: - run: - shell: pwsh steps: - name: Checkout uses: actions/checkout@v2 @@ -35,13 +35,13 @@ jobs: run: stack --no-terminal build --arch '${{ matrix.platform }}' --only-dependencies - name: Build run: stack --no-terminal build --arch '${{ matrix.platform }}' --copy-bins --local-bin-path ../install - - name: Upload the binaries + - name: Upload binaries uses: actions/upload-artifact@v2 with: name: 'windows-env-${{ matrix.platform }}' path: '${{ runner.workspace }}/install/' if-no-files-found: error - - name: Run the tests + - name: Run tests run: | $((Get-ItemProperty $env:global_env).PATH.Split(';') | Select-String -Pattern '^C:\\dumb$' -Quiet) -and $(throw "Global PATH shouldn't contain C:\dumb") $((Get-ItemProperty $env:user_env).PATH.Split(';') | Select-String -Pattern '^C:\\dumb$' -Quiet) -and $(throw "User PATH shouldn't contain C:\dumb") |