Skip to content

Commit

Permalink
Merge pull request #20 from lorengordon/bash-on-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored Jul 17, 2023
2 parents 70a8770 + 51f35f4 commit 8622212
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.3.0
current_version = 1.3.1
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/test-salt-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
default: https://repo.saltproject.io/salt/py3/windows/minor/3006.1/Salt-Minion-3006.1-Py3-AMD64-Setup.exe
type: string

defaults:
run:
shell: bash

jobs:
test:
runs-on: ${{ inputs.salt-os-version}}
Expand All @@ -29,39 +33,32 @@ jobs:

# Install salt
- run: >
(new-object net.webclient).DownloadFile(
"${{ inputs.salt-installer-url }}",
"${env:temp}\salt-minion-installer.exe" )
shell: pwsh
curl -sSL -o "${TEMP}/salt-minion-installer.exe" "${{ inputs.salt-installer-url }}"
- run: >
Start-Process -FilePath "${env:temp}\salt-minion-installer.exe"
-ArgumentList @("/S", "/install-dir=c:\salt")
-NoNewWindow -PassThru -Wait
shell: pwsh
- run: C:\salt\salt-call.exe --versions-report
shell: pwsh
- run: C:\\salt\\salt-call.exe --versions-report

# Sync custom salt modules, if any
- run: >
C:\salt\salt-call.exe --local --retcode-passthrough
C:\\salt\\salt-call.exe --local --retcode-passthrough
--log-file-level debug
--file-root="${{ github.workspace }}" --pillar-root=${{ inputs.salt-pillar-root }}
saltutil.sync_all
shell: pwsh
# Run tests
- run: >
C:\salt\salt-call.exe --local --retcode-passthrough
C:\\salt\\salt-call.exe --local --retcode-passthrough
--log-file-level debug
--file-root="${{ github.workspace }}" --pillar-root=${{ inputs.salt-pillar-root }}
state.show_sls
"${{ inputs.salt-state }}"
shell: pwsh
- run: >
C:\salt\salt-call.exe --local --retcode-passthrough
C:\\salt\\salt-call.exe --local --retcode-passthrough
--log-file-level debug
--file-root="${{ github.workspace }}" --pillar-root=${{ inputs.salt-pillar-root }}
state.sls
"${{ inputs.salt-state }}"
mock=True
shell: pwsh
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

### [1.3.1](https://github.com/plus3it/actions-workflows/releases/tag/1.3.1)

**Released**: 2023.07.17

**Summary**:

* Uses bash on Windows runners to validate steps using shellcheck

### [1.3.0](https://github.com/plus3it/actions-workflows/releases/tag/1.3.0)

**Released**: 2023.06.26
Expand Down

0 comments on commit 8622212

Please sign in to comment.