jake efcd748483
All checks were successful
test / test (push) Successful in 17s
Update .gitea/workflows/test.yaml
2025-05-22 23:58:03 +00:00

40 lines
995 B
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: "this should skip"
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