Skip to content

Commit

Permalink
perf: update plugin from template [autocommit]
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Jul 15, 2023
0 parents commit 6a6a0b8
Show file tree
Hide file tree
Showing 56 changed files with 2,245 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
## Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v2.0.1
_src_path: gh:kc-workspace/asdf-plugin-template.git
addon_yaml:
archive: true
checksum: true
download: true
fetch: true
git: false
github: true
gpg: false
help: true
install: true
package: false
python: false
system: true
tags: true
version: false
app_desc: a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
app_name: yq
app_repo: https://github.com/mikefarah/yq
app_type: standalone
app_website: https://mikefarah.gitbook.io/yq/
archive_enabled: false
checksum_conf_algorithm: 512
checksum_enabled: true
checksum_url: https://github.com/mikefarah/yq/releases/download/v{version}/checksums
custom_arch_enabled: true
custom_arch_yaml:
aarch64*: arm64
armv5*: arm
armv6*: arm
armv7*: arm
i386: '386'
i686: '386'
powerpc64le: ppc64le
ppc64le: ppc64le
x86: '386'
x86_64: amd64
custom_bin_paths: bin
custom_non_stable_version: (-src|-dev|-latest|-stm|[-\.]rc|-alpha|-beta|[-\.]pre|-next|snapshot|master)
custom_os_enabled: false
custom_require_commands: ''
download_url: https://github.com/mikefarah/yq/releases/download/v{version}/yq_{os}_{arch}
gpg_enabled: false
install_map_enabled: true
install_map_method: move
install_map_yaml:
yq: bin/yq
package_enabled: false
plugin_author: Kamontat Chantrachirathumrong
plugin_name: asdf-yq
plugin_org: kc-workspace
plugin_repo: https://github.com/kc-workspace/asdf-yq.git
source_enabled: false
test_cmd_args: --version
version_file_enabled: false
version_prefix: v
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# dependabot for GitHub Actions for this repository
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
Empty file.
29 changes: 29 additions & 0 deletions .github/linters/cspell-default.dict.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
yq
asdf
tmpl
tmpdir
tmpfile
tmppath
indir
infile
inpath
outdir
outfile
outpath
aarch
armv
checksum
shasum
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
strftime
kamontat
chantrachirathumrong
kc
kcws
mergify
envops
venv
28 changes: 28 additions & 0 deletions .github/linters/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell#example-cspelljson-file
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"language": "en",
"allowCompoundWords": true,
"ignorePaths": [
// Ignore cspell config
"**/.cspell.json",
// Ignore vscode config
"**/.vscode",
// Ignore auto-generate scripts
"**/scripts"
],
"dictionaries": [
"softwareTerms",
"bash",
"filetypes",
"defaultDict",
"customDict"
],
"dictionaryDefinitions": [
{ "name": "defaultDict", "path": "./cspell-default.dict.txt" },
{ "name": "customDict", "path": "./cspell-custom.dict.txt" }
],
"useGitignore": true,
"gitignoreRoot": "../.."
}
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Main

on:
push:

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DEFAULT_BRANCH: main

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Running cspell
uses: streetsidesoftware/cspell-action@v2
with:
config: ".github/linters/cspell.json"
# Log progress and other information during the action execution.
verbose: true
# Determines if the action should be failed
# if any spelling issues are found.
strict: true
# Limit the files checked to the ones in the pull request or push.
# We will enabled this only if this job tooks more than 3 minutes
incremental_files_only: false
# Notification level to use with inline reporting of spelling errors.
# Allowed values are: warning, error, none
inline: warning
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Linting
uses: super-linter/super-linter/slim@v5
env:
DEFAULT_BRANCH: ${{ env.DEFAULT_BRANCH }}
VALIDATE_ALL_CODEBASE: false
IGNORE_GITIGNORED_FILES: true

testing:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v2
with:
command: yq --version
env:
DEBUG: 1
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches:
- main

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: simple
changelog-types: |
[
{"type":"feat","section":"Features","hidden":false},
{"type":"perf","section":"Improvements","hidden":false},
{"type":"fix","section":"Bugfixes","hidden":false},
{"type":"chore","section":"Miscellaneous","hidden":false}
]
3 changes: 3 additions & 0 deletions .rtx.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## RTX config
## This added for future template might supported RTX fairly easy.
## ref: https://github.com/jdxcode/rtx
Loading

0 comments on commit 6a6a0b8

Please sign in to comment.