Skip to content

Commit

Permalink
perf(plugin): upgrade template to version v2.7.4 [bot]
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Nov 8, 2024
0 parents commit 609f03c
Show file tree
Hide file tree
Showing 61 changed files with 2,614 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
## Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v2.7.4
_src_path: gh:kc-workspace/asdf-plugin-template.git
addon_yaml:
archive: false
checksum: false
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 client that provides a simple interface that automates access to the JFrog
products.
app_name: jf
app_repo: https://github.com/jfrog/jfrog-cli
app_type: standalone
app_website: https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
archive_enabled: false
checksum_enabled: false
custom_bin_paths: bin
custom_non_stable_version: (-src|-dev|-latest|-stm|[-\.]rc|-alpha|-beta|[-\.]pre|-next|snapshot|master)
custom_require_commands: ''
download_url: https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/{version}/jfrog-cli-{os}-{arch}/jf
gpg_enabled: false
install_map_enabled: true
install_map_method: move
install_map_yaml:
jf: bin/jf
package_enabled: false
plugin_author: Kamontat Chantrachirathumrong
plugin_name: asdf-jf
plugin_org: kc-workspace
plugin_repo: https://github.com/kc-workspace/asdf-jf.git
source_enabled: false
sys_arch_enabled: true
sys_arch_yaml:
aarch64*: arm64
armv5*: arm64
armv6*: arm64
armv7*: arm64
i386: '386'
i686: amd64
powerpc64le: ppc64le
ppc64le: ppc64le
x86: '386'
x86_64: amd64
sys_ext_enabled: false
sys_os_enabled: true
sys_os_yaml:
darwin: mac
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"
21 changes: 21 additions & 0 deletions .github/linters/.gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title = "gitleaks config"

[extend]
# useDefault will extend the base configuration with the default gitleaks config:
# https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml
useDefault = true

[allowlist]
description = "global allow lists"
paths = [
'''gitleaks.toml''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe)$''',
'''(go.mod|go.sum)$''',
'''gradle.lockfile''',
'''node_modules''',
'''package-lock.json''',
'''pnpm-lock.yaml''',
'''Database.refactorlog''',
'''vendor''',
'''.copier-answers.yml''',
]
39 changes: 39 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
###########################
###########################
## Markdown Linter rules ##
###########################
###########################

# Linter rules doc:
# - https://github.com/DavidAnson/markdownlint
# Linter template:
# - https://github.com/super-linter/super-linter/blob/main/TEMPLATES/.markdown-lint.yml
#
# Note:
# To comment out a single error:
# <!-- markdownlint-disable -->
# any violations you want
# <!-- markdownlint-restore -->
#

###############
# Rules by id #
###############
MD004: false # Unordered list style
MD007:
indent: 2 # Unordered list indentation
MD013:
line_length: 400 # Line length 80 is far to short
MD024:
siblings_only: true # Only check sibling headings
MD026:
punctuation: ".,;:!。,;:" # List of not allowed
MD029: false # Ordered list item prefix
MD033: false # Allow inline HTML
MD036: false # Emphasis used instead of a heading

#################
# Rules by tags #
#################
blank_lines: false # Error on blank lines
Empty file.
33 changes: 33 additions & 0 deletions .github/linters/cspell-default.dict.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
jf
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
keyid
kwargs
cmd
cmds
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": "../.."
}
17 changes: 17 additions & 0 deletions .github/release-please/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://github.com/googleapis/release-please/raw/main/schemas/config.json",
"changelog-type": "github",
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "perf", "section": "Improvements", "hidden": false },
{ "type": "fix", "section": "Bugfixes", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "revert", "section": "Reverts", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
],
"packages": {}
}
73 changes: 73 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Main

on:
push:

defaults:
run:
shell: bash

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

env:
DEFAULT_BRANCH: main

permissions:
contents: read

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Running cspell
uses: streetsidesoftware/cspell-action@v6
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
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Linting
uses: super-linter/super-linter/slim@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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@v3
with:
command: jf --version
env:
DEBUG: 1
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: googleapis/release-please-action@v4
with:
release-type: simple
config-file: .github/release-please/config.json
Loading

0 comments on commit 609f03c

Please sign in to comment.