Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 33b2114

Browse files
committed
add windows actions
add retry to bats step bump version add windows to build script fix doc error
1 parent d6a7d18 commit 33b2114

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ env:
88
VMD_PASS: ${{ secrets.VMD_PASS }}
99

1010
jobs:
11-
build:
11+
tests:
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest, macos-latest]
14+
os: [ubuntu-latest, macos-latest, windows-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- name: Set up Go
@@ -26,6 +26,7 @@ jobs:
2626
run: go test -v ./...
2727

2828
- name: Setup BATS
29+
if: runner.os != 'windows'
2930
run: |
3031
set -e
3132
@@ -36,7 +37,11 @@ jobs:
3637
git clone https://github.com/bats-core/bats-core.git && bats-core/install.sh $HOME
3738
3839
- name: Run BATS Tests
40+
if: runner.os != 'windows'
41+
with:
42+
max_attempts: 3
3943
run: |
4044
export PATH=${PATH}:/home/runner/bin
4145
bats test/bats
46+
4247

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ To make it available to all users `sudo mv vmd-<os>-<version> /usr/local/bin/vmd
3232
# Display example manifest file
3333
vmd get manifestexample
3434
```
35-
## Testing
35+
# Testing
3636
To run commands against source use `alias vmd="go run main.go`</br>
3737
Run go tests `go test ./...`</br>
3838
Run BATS tests `bats test/bats`
3939

40-
## Development
40+
# Development
4141
Update the SDK `go get -u github.com/laidbackware/vmware-download-sdk`</br>
4242
Ensure that your IDE exports `VMD_USER` and `VMD_PASS` to be able to run tests and debug.

cmd/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const (
1818
vmd get manifestexample`
1919

2020
downloadUsage = ` # Download the latest version of release 11 with a file matching the pattern
21-
vmd download -p vmware_tools -s vmtools -v 11.* -f VMware-Tools-darwin-*.zip --acceptEula
21+
vmd download -p vmware_tools -s vmtools -v 11.* -f VMware-Tools-darwin-*.zip --accepteula
2222
2323
# Download files using a manifest file
2424
vmd download -m manifest.yml --accepteula`

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var password string
2727

2828
// rootCmd represents the base command when called without any subcommands
2929
var rootCmd = &cobra.Command{
30-
Version: "0.0.1",
30+
Version: "0.1.0",
3131
Use: "vmd",
3232
Short: "Download binaries from customerconnect.vmware.com",
3333
Long: "vmd downloads binaries from customerconnect.vmware.com",

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ env GOOS=linux GOARCH=amd64 go build -o ${SCRIPT_DIR}/builds/vmd-linux-v${VERSIO
77

88
env GOOS=darwin GOARCH=amd64 go build -o ${SCRIPT_DIR}/builds/vmd-darwin-v${VERSION}
99

10-
# env GOOS=windows GOARCH=amd64 go build -o ${SCRIPT_DIR}/builds/vmd-windows-v${VERSION}.exe
10+
env GOOS=windows GOARCH=amd64 go build -o ${SCRIPT_DIR}/builds/vmd-windows-v${VERSION}.exe
1111

0 commit comments

Comments
 (0)