jake 24b6739aa5
Some checks failed
test / test (push) Failing after 18s
adding arch, defaults dont apply to tests
2025-05-22 21:50:54 -04:00

46 lines
1.1 KiB
YAML

name: "test"
run-name: "test"
on: push
jobs:
test:
runs-on: action
steps:
- uses: actions/checkout@v4
- name: "setup mock go.mod file"
shell: bash
run: |
echo -e "module code.jakeyoungdev.com/actions/install-go\n\ngo 1.24" > go.mod
- name: "run go install script"
shell: bash
env:
GO_INSTALL_COMMANDS: code.jakeyoungdev.com/jake/mctl@v0.3.4
GO_INSTALL_ARCH: amd64
run: |
chmod +x install.sh
./install.sh
- name: "check go version"
shell: bash
run: go version | grep "go version go1.24.0 linux/amd64"
- name: "check go installed command"
shell: bash
run: mctl -v | grep "mctl version v0.3.4"
- name: "remove go"
shell: bash
env:
GO_INSTALL_COMMANDS: code.jakeyoungdev.com/jake/mctl@v0.3.4
GO_INSTALL_PURGE: yes
GO_INSTALL_VERSION: 1.23.2
GO_INSTALL_ARCH: amd64
run: |
rm go.mod
./install.sh
- name: "check go version"
shell: bash
run: go version | grep "go version go1.23.2 linux/amd64"