feat: setup ci (#2)

This commit is contained in:
sigoden
2024-05-16 18:38:53 +08:00
committed by GitHub
parent 7a31090860
commit 585a3544fb
2 changed files with 39 additions and 0 deletions
+33
View File
@@ -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
+6
View File
@@ -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 '