Added version command for the cli using ldflags #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-ubuntu: | |
name: Test on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Set up Lua | |
run: sudo apt-get update && sudo apt-get install -y lua5.4 | |
- name: Install dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test ./... -v | |
- name: Test install Script in bash | |
shell: bash | |
run: | | |
echo "Testing install script in bash..." | |
lua install/tests/linux_test.lua | |
- name: Test install Script in zsh | |
shell: bash | |
run: | | |
echo "Testing install script in zsh..." | |
lua install/tests/linux_test.lua | |
test-macos: | |
name: Test on macOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Set up Lua | |
run: brew install [email protected] | |
- name: Install dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test ./... -v | |
- name: Test install Script in bash | |
shell: bash | |
run: | | |
echo "Testing install script in bash..." | |
lua install/tests/mac_test.lua | |
- name: Test install Script in zsh | |
shell: bash | |
run: | | |
echo "Testing install script in zsh..." | |
lua install/tests/mac_test.lua | |