This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to refs/heads/main by this push:
new 14d4dba 7zz test
14d4dba is described below
commit 14d4dba16a45be41dcec5f3b7522f8caa2265038
Author: Michele Sciabarra <[email protected]>
AuthorDate: Tue Jul 30 22:36:41 2024 +0200
7zz test
---
nuvfile.yml | 8 +++-----
prereq.yml | 19 +++++++++----------
tests/nuvfile.yml | 7 +++++++
3 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/nuvfile.yml b/nuvfile.yml
index dbe7828..a06ae03 100644
--- a/nuvfile.yml
+++ b/nuvfile.yml
@@ -19,8 +19,6 @@
version: "3"
tasks:
- info:
- desc: info
- cmds:
- - 7zz | grep 7-Zip
-
+ tests:
+ desc: tests
+
diff --git a/prereq.yml b/prereq.yml
index f56def5..5d6815d 100644
--- a/prereq.yml
+++ b/prereq.yml
@@ -2,19 +2,18 @@ version: 3
vars:
OS: "{{or .__OS OS}}"
+ BOH: "{{.__ARCH}}"
ARCH: "{{or .__ARCH ARCH}}"
ARC: '{{if eq .OS "windows"}}.zip{{else}}.tgz{{end}}'
ARC2: '{{if eq .OS "windows"}}.zip{{else}}.tar.gz{{end}}'
EXE: '{{if eq .OS "windows"}}.exe{{else}}{{end}}'
tasks:
- test:
- vars:
- FILE: file.tar.gz
- cmds:
- - echo "{{.FILE}}"
- - echo '{{trimSuffix ".gz" .FILE }}'
+ info:
+ - echo "__ARCH={{.__ARCH}} BOH={{.BOH}}"
+ - echo "OS={{.OS}} ARCH={{.ARCH}} ARC={{.ARC}} EXE={{.EXE}}"
+
download-and-extract:
requires:
vars:
@@ -98,9 +97,9 @@ tasks:
bun:
description: bun
vars:
- VERSION: "v1.1.21"
+ VERSION: "1.1.21"
ARCH2: '{{if eq .ARCH "amd64"}}x64{{else}}aarch64{{end}}'
- URL:
'https://github.com/oven-sh/bun/releases/download/bun-{{.VERSION}}/bun-{{.OS}}-{{.ARCH2}}.zip'
+ URL:
'https://github.com/oven-sh/bun/releases/download/bun-v{{.VERSION}}/bun-{{.OS}}-{{.ARCH2}}.zip'
FILE: '{{base .URL}}'
cmds:
- echo "{{.URL}}"
@@ -119,11 +118,11 @@ tasks:
kind:
vars:
- VERSION: v0.17.0
+ VERSION: 0.17.0
cmds:
- task: download
vars:
- URL:
"https://kind.sigs.k8s.io/dl/{{.VERSION}}/kind-{{.OS}}-{{.ARCH}}"
+ URL:
"https://kind.sigs.k8s.io/dl/v{{.VERSION}}/kind-{{.OS}}-{{.ARCH}}"
OUT: kind
k3sup:
diff --git a/tests/nuvfile.yml b/tests/nuvfile.yml
new file mode 100644
index 0000000..9ee4071
--- /dev/null
+++ b/tests/nuvfile.yml
@@ -0,0 +1,7 @@
+version: 3
+tasks:
+
+ 7zz:
+ desc: 7zz test
+ cmds:
+ - 7zz | grep 7-Zip