breaking tests apart
Some checks failed
tests / test-versioninput (push) Failing after 4s
tests / test-gomod (push) Successful in 17s

This commit is contained in:
2026-05-27 14:28:28 -04:00
parent 229b3116e4
commit b25fd78dd5
2 changed files with 10 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
name: "test" name: "tests"
run-name: "test" run-name: "tests"
on: push on: push
jobs: jobs:
test: test-gomod:
runs-on: wind runs-on: wind
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -30,15 +30,18 @@ jobs:
shell: bash shell: bash
run: mctl -v | grep "mctl version v0.3.4" run: mctl -v | grep "mctl version v0.3.4"
- name: "remove go" test-versioninput:
runs-on: wind
steps:
- uses: actions/checkout@v4
- name: "install go with version input"
shell: bash shell: bash
env: env:
GO_INSTALL_COMMANDS: code.jakeyoungdev.com/jake/mctl@v0.3.4 GO_INSTALL_COMMANDS: code.jakeyoungdev.com/jake/mctl@v0.3.4
GO_INSTALL_PURGE: yes
GO_INSTALL_VERSION: 1.23.2 GO_INSTALL_VERSION: 1.23.2
GO_INSTALL_ARCH: amd64 GO_INSTALL_ARCH: amd64
run: | run: |
rm go.mod chmod +x install.sh
./install.sh ./install.sh
- name: "check go version" - name: "check go version"

View File

@@ -44,7 +44,7 @@ if [[ -z $GO_INSTALL_VERSION ]]; then
fixVersion fixVersion
fi fi
else else
DL_VERSION_RAW="$GO_INSTALL_VERSION" DL_VERSION_RAW=$GO_INSTALL_VERSION
fi fi