aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 '