aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-05-16 18:38:53 +0800
committerGitHub <noreply@github.com>2024-05-16 18:38:53 +0800
commit585a3544fb67f5ff81a4247d11eb0c3285a777f8 (patch)
tree03b502b570e4da4cdbd7fa0e35c5547cc3234a8a
parent7a310908603e9ddf923b154447b3a953bea860e9 (diff)
downloadllm-functions-docker-585a3544fb67f5ff81a4247d11eb0c3285a777f8.tar.gz
feat: setup ci (#2)
-rw-r--r--.github/workflows/ci.yaml33
-rw-r--r--Argcfile.sh6
2 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..8518a2d
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,33 @@
+name: CI
+
+on:
+ pull_request:
+ branches:
+ - '*'
+ push:
+ branches:
+ - main
+
+defaults:
+ run:
+ shell: bash
+
+jobs:
+ all:
+ name: All
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: extractions/setup-crate@v1
+ with:
+ owner: sigoden
+ name: argc
+
+ - name: Check versions
+ run: argc version
+
+ - name: Check scripts
+ run: argc build \ No newline at end of file
diff --git a/Argcfile.sh b/Argcfile.sh
index 4003313..67ff6d6 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -71,6 +71,12 @@ install() {
fi
}
+# @cmd Show versions of required tools for bug reports.
+version() {
+ argc --argc-version
+ jq --version
+ curl --version | head -n 1
+}
_parse_declaration() {
jq -r '