[new] Code migration
This commit is contained in:
34
.gitea/workflows/test.yaml
Normal file
34
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: "test"
|
||||
run-name: "test"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- "!v*-beta*"
|
||||
|
||||
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"
|
Reference in New Issue
Block a user