33 lines
768 B
YAML
33 lines
768 B
YAML
name: "test"
|
|
run-name: "test"
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: [smoketest]
|
|
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: github.com/jake-young-dev/kelp@v0.0.9
|
|
run: |
|
|
chmod +x install.sh
|
|
./install.sh amd64 no
|
|
|
|
- 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: kelp -v | grep "kelp version v0.0.9" |