tests: auto-generated from examples.yml (#773) [skip ci]
This commit is contained in:
40
.github/examples.mjs
vendored
40
.github/examples.mjs
vendored
@@ -10,6 +10,7 @@ import yaml from "js-yaml"
|
|||||||
const __metrics = paths.join(paths.dirname(url.fileURLToPath(import.meta.url)), "..")
|
const __metrics = paths.join(paths.dirname(url.fileURLToPath(import.meta.url)), "..")
|
||||||
const __templates = paths.join(paths.join(__metrics, "source/templates/"))
|
const __templates = paths.join(paths.join(__metrics, "source/templates/"))
|
||||||
const __plugins = paths.join(paths.join(__metrics, "source/plugins/"))
|
const __plugins = paths.join(paths.join(__metrics, "source/plugins/"))
|
||||||
|
const __test_plugins = paths.join(paths.join(__metrics, "tests/plugins"))
|
||||||
|
|
||||||
//Load plugins metadata
|
//Load plugins metadata
|
||||||
const {plugins, templates} = await metadata({log:false, diff:true})
|
const {plugins, templates} = await metadata({log:false, diff:true})
|
||||||
@@ -18,25 +19,62 @@ async function plugin(id) {
|
|||||||
const path = paths.join(__plugins, id)
|
const path = paths.join(__plugins, id)
|
||||||
const readme = paths.join(path, "README.md")
|
const readme = paths.join(path, "README.md")
|
||||||
const examples = paths.join(path, "examples.yml")
|
const examples = paths.join(path, "examples.yml")
|
||||||
|
const tests = paths.join(__test_plugins, id)
|
||||||
return {
|
return {
|
||||||
readme:{
|
readme:{
|
||||||
path:readme,
|
path:readme,
|
||||||
content:`${await fs.readFile(readme)}`
|
content:`${await fs.readFile(readme)}`
|
||||||
},
|
},
|
||||||
|
tests:{
|
||||||
|
dir:tests,
|
||||||
|
file:paths.join(tests, "tests.yml")
|
||||||
|
},
|
||||||
examples:fss.existsSync(examples) ? yaml.load(await fs.readFile(examples), "utf8") ?? [] : [],
|
examples:fss.existsSync(examples) ? yaml.load(await fs.readFile(examples), "utf8") ?? [] : [],
|
||||||
options:plugins[id].readme.table
|
options:plugins[id].readme.table
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const secrets = {
|
||||||
|
$regex:/\$\{\{\s*secrets\.(?<secret>\w+)\s*\}\}/,
|
||||||
|
METRICS_TOKEN:"MOCKED_TOKEN",
|
||||||
|
METRICS_BOT_TOKEN:"MOCKED_TOKEN",
|
||||||
|
PAGESPEED_TOKEN:"MOCKED_TOKEN",
|
||||||
|
SPOTIFY_TOKENS:"MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN",
|
||||||
|
YOUTUBE_MUSIC_TOKEN:"SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;",
|
||||||
|
LASTFM_TOKEN:"MOCKED_TOKEN",
|
||||||
|
NIGHTSCOUT_URL:"https://testapp.herokuapp.com/",
|
||||||
|
WAKATIME_TOKEN:"MOCKED_TOKEN",
|
||||||
|
WAKATIME_TOKEN_NO_PROJECTS:"MOCKED_TOKEN_NO_PROJECTS",
|
||||||
|
TWITTER_TOKEN:"MOCKED_TOKEN",
|
||||||
|
RAPIDAPI_TOKEN:"MOCKED_TOKEN",
|
||||||
|
}
|
||||||
|
|
||||||
//Plugins
|
//Plugins
|
||||||
for (const id of Object.keys(plugins)) {
|
for (const id of Object.keys(plugins)) {
|
||||||
const {examples, options, readme} = await plugin(id)
|
const {examples, options, readme, tests} = await plugin(id)
|
||||||
|
|
||||||
//Plugin readme
|
//Plugin readme
|
||||||
await fs.writeFile(readme.path, readme.content
|
await fs.writeFile(readme.path, readme.content
|
||||||
.replace(/(<!--examples-->)[\s\S]*(<!--\/examples-->)/g, `$1\n${examples.map(({test, prod, ...step}) => ["```yaml", yaml.dump(step), "```"].join("\n")).join("\n")}\n$2`)
|
.replace(/(<!--examples-->)[\s\S]*(<!--\/examples-->)/g, `$1\n${examples.map(({test, prod, ...step}) => ["```yaml", yaml.dump(step), "```"].join("\n")).join("\n")}\n$2`)
|
||||||
.replace(/(<!--options-->)[\s\S]*(<!--\/options-->)/g, `$1\n${options}\n$2`)
|
.replace(/(<!--options-->)[\s\S]*(<!--\/options-->)/g, `$1\n${options}\n$2`)
|
||||||
)
|
)
|
||||||
//Plugin tests
|
//Plugin tests
|
||||||
|
await fs.mkdir(tests.dir, { recursive: true });
|
||||||
|
await fs.writeFile(tests.file, yaml.dump(examples.map(({prod, test = {}, name = "", ...step}) => {
|
||||||
|
const result = {name:`${plugins[id].name} - ${name}`, ...step, ...test}
|
||||||
|
test.with ??= {}
|
||||||
|
for (const [k, v] of Object.entries(result.with)) {
|
||||||
|
if (k in test.with)
|
||||||
|
result.with[k] = test.with[k]
|
||||||
|
if (secrets.$regex.test(v))
|
||||||
|
result.with[k] = v.replace(secrets.$regex, secrets[v.match(secrets.$regex)?.groups?.secret])
|
||||||
|
}
|
||||||
|
if (!result.with.base)
|
||||||
|
delete result.with.base
|
||||||
|
delete result.with.filename
|
||||||
|
return result
|
||||||
|
})))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Templates
|
//Templates
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
base: ""
|
base: ""
|
||||||
plugin_achievements: yes
|
plugin_achievements: yes
|
||||||
plugin_achievements_only: sponsor, maintainer, octonaut
|
plugin_achievements_only: sponsor, maintainer, octonaut
|
||||||
test:
|
|
||||||
timeout: 900000
|
|
||||||
|
|
||||||
- name: Compact display
|
- name: Compact display
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -19,5 +17,3 @@
|
|||||||
plugin_achievements_only: polyglot, stargazer, sponsor, deployer, member, maintainer, developer, scripter, packager, explorer, infographile, manager
|
plugin_achievements_only: polyglot, stargazer, sponsor, deployer, member, maintainer, developer, scripter, packager, explorer, infographile, manager
|
||||||
plugin_achievements_display: compact
|
plugin_achievements_display: compact
|
||||||
plugin_achievements_threshold: X
|
plugin_achievements_threshold: X
|
||||||
test:
|
|
||||||
timeout: 900000
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
- name: Achievements plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_achievements: yes
|
|
||||||
timeout: 900000
|
|
||||||
|
|
||||||
- name: Achievements plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_achievements_threshold: A
|
|
||||||
plugin_achievements_secrets: no
|
|
||||||
plugin_achievements_ignored: octonaut
|
|
||||||
timeout: 900000
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
- name: Activity plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_activity: yes
|
|
||||||
|
|
||||||
- name: Activity plugin (filtered)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_activity: yes
|
|
||||||
plugin_activity_filter: pr, issue
|
|
||||||
|
|
||||||
- name: Activity plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_activity: yes
|
|
||||||
plugin_activity_limit: 100
|
|
||||||
plugin_activity_days: 14
|
|
||||||
plugin_activity_filter: all
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
- name: Anilist plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
|
|
||||||
- name: Anilist plugin (manga only)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_medias: manga
|
|
||||||
|
|
||||||
- name: Anilist plugin (anime only)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_medias: anime
|
|
||||||
|
|
||||||
- name: Anilist plugin (favorites section)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_sections: favorites
|
|
||||||
|
|
||||||
- name: Anilist plugin (watching/reading section)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_sections: watching, reading
|
|
||||||
|
|
||||||
- name: Anilist plugin (characters section)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_sections: characters
|
|
||||||
|
|
||||||
- name: Anilist plugin (additional options)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_limit: 0
|
|
||||||
plugin_anilist_limit_characters: 10
|
|
||||||
plugin_anilist_shuffle: no
|
|
||||||
plugin_anilist_user: user
|
|
||||||
|
|
||||||
- name: Anilist plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_anilist: yes
|
|
||||||
plugin_anilist_medias: manga, anime
|
|
||||||
plugin_anilist_sections: favorites, watching, reading, characters
|
|
||||||
plugin_anilist_limit: 0
|
|
||||||
plugin_anilist_limit_characters: 22
|
|
||||||
plugin_anilist_shuffle: no
|
|
||||||
plugin_anilist_user: user
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
- name: Base (header)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
base: header
|
|
||||||
base_header: yes # For web instance
|
|
||||||
|
|
||||||
- name: Base (activity)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
base: activity
|
|
||||||
base_activity: yes # For web instance
|
|
||||||
|
|
||||||
- name: Base (community)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
base: community
|
|
||||||
base_community: yes # For web instance
|
|
||||||
|
|
||||||
- name: Base (repositories)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
base: repositories
|
|
||||||
base_repositories: yes # For web instance
|
|
||||||
|
|
||||||
- name: Base (metadata)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
base: metadata
|
|
||||||
base_metadata: yes # For web instance
|
|
||||||
|
|
||||||
- name: Base (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
base: header, activity, community, repositories, metadata
|
|
||||||
base_header: yes # For web instance
|
|
||||||
base_activity: yes # For web instance
|
|
||||||
base_community: yes # For web instance
|
|
||||||
base_repositories: yes # For web instance
|
|
||||||
base_metadata: yes # For web instance
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#- name: Contributors plugin (default)
|
|
||||||
# uses: lowlighter/metrics@latest
|
|
||||||
# with:
|
|
||||||
# token: MOCKED_TOKEN
|
|
||||||
# plugin_contributors: yes
|
|
||||||
|
|
||||||
#- name: Contributors plugin (complete)
|
|
||||||
# uses: lowlighter/metrics@latest
|
|
||||||
# with:
|
|
||||||
# token: MOCKED_TOKEN
|
|
||||||
# plugin_contributors: yes
|
|
||||||
# plugin_contributors_ignored: github-actions[bot]
|
|
||||||
# plugin_contributors_contributions: yes
|
|
||||||
# plugin_contributors_head: MOCKED_SHA
|
|
||||||
# plugin_contributors_base: MOCKED_SHA
|
|
||||||
0
source/plugins/core/examples.yml
Normal file
0
source/plugins/core/examples.yml
Normal file
@@ -1,44 +0,0 @@
|
|||||||
- name: Image output (jpeg)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
config_output: jpeg
|
|
||||||
|
|
||||||
- name: Image output (png)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
config_output: png
|
|
||||||
|
|
||||||
- name: Image output (json)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
config_output: json
|
|
||||||
|
|
||||||
- name: Use twemoji
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
config_twemoji: yes
|
|
||||||
|
|
||||||
- name: Use gemoji
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
config_gemoji: yes
|
|
||||||
|
|
||||||
- name: Disable animations
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
config_animations: no
|
|
||||||
|
|
||||||
- name: Community templates
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
template: "@classic"
|
|
||||||
setup_community_templates: "lowlighter/metrics@master:classic"
|
|
||||||
modes:
|
|
||||||
- action
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Discussions plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_discussions: yes
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
- name: Follow-up plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_followup: yes
|
|
||||||
|
|
||||||
- name: Follow-up plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_followup: yes
|
|
||||||
plugin_followup_sections: repositories, user
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Gists plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_gists: yes
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
- name: Habits plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_habits: yes
|
|
||||||
|
|
||||||
- name: Habits plugin (charts)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_habits: yes
|
|
||||||
plugin_habits_facts: no
|
|
||||||
plugin_habits_charts: yes
|
|
||||||
plugin_habits_trim: yes
|
|
||||||
config_timezone: Europe/Paris
|
|
||||||
|
|
||||||
- name: Habits plugin (facts)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_habits: yes
|
|
||||||
plugin_habits_facts: yes
|
|
||||||
|
|
||||||
- name: Habits plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_habits: yes
|
|
||||||
plugin_habits_facts: yes
|
|
||||||
plugin_habits_charts: yes
|
|
||||||
config_timezone: Europe/Paris
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
- name: Introduction plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_introduction: yes
|
|
||||||
|
|
||||||
- name: Introduction plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_introduction: yes
|
|
||||||
plugin_introduction_title: no
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
- name: Isocalendar plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_isocalendar: yes
|
|
||||||
|
|
||||||
- name: Isocalendar plugin (half-year)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_isocalendar: yes
|
|
||||||
plugin_isocalendar_duration: half-year
|
|
||||||
|
|
||||||
|
|
||||||
- name: Isocalendar plugin (full-year)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_isocalendar: yes
|
|
||||||
plugin_isocalendar_duration: full-year
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
- name: Language plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
|
|
||||||
- name: Language plugin (ignored languages)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_ignored: html, css, dockerfile
|
|
||||||
|
|
||||||
- name: Language plugin (skipped repositories)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_skipped: metrics
|
|
||||||
|
|
||||||
- name: Language plugin (custom color set)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_colors: complementary
|
|
||||||
|
|
||||||
- name: Language plugin (with details)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_details: percentage
|
|
||||||
|
|
||||||
- name: Language plugin (with threshold)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_threshold: 2%
|
|
||||||
|
|
||||||
- name: Language plugin (with categories)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_categories: programming, data
|
|
||||||
|
|
||||||
- name: Language plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_languages: yes
|
|
||||||
plugin_languages_ignored: html, css, dockerfile
|
|
||||||
plugin_languages_skipped: metrics
|
|
||||||
plugin_languages_colors: rainbow
|
|
||||||
plugin_languages_details: bytes-size, percentage
|
|
||||||
plugin_languages_threshold: 2%
|
|
||||||
plugin_languages_categories: programming, markup, data
|
|
||||||
@@ -7,6 +7,10 @@
|
|||||||
repo: metrics
|
repo: metrics
|
||||||
plugin_licenses: yes
|
plugin_licenses: yes
|
||||||
plugin_licenses_setup: npm ci
|
plugin_licenses_setup: npm ci
|
||||||
|
test:
|
||||||
|
timeout: 1800000
|
||||||
|
modes:
|
||||||
|
- action
|
||||||
|
|
||||||
- name: Licenses with open-source ratio graphs
|
- name: Licenses with open-source ratio graphs
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -20,3 +24,5 @@
|
|||||||
plugin_licenses_setup: npm ci
|
plugin_licenses_setup: npm ci
|
||||||
plugin_licenses_legal: no
|
plugin_licenses_legal: no
|
||||||
plugin_licenses_ratio: yes
|
plugin_licenses_ratio: yes
|
||||||
|
test:
|
||||||
|
skip: true
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#- name: Licenses plugin (complete)
|
|
||||||
# uses: lowlighter/metrics@latest
|
|
||||||
# with:
|
|
||||||
# token: MOCKED_TOKEN
|
|
||||||
# template: repository
|
|
||||||
# repo: metrics
|
|
||||||
# plugin_licenses: yes
|
|
||||||
# plugin_licenses_setup: npm ci
|
|
||||||
# plugin_licenses_ratio: yes
|
|
||||||
# plugin_licenses_legal: yes
|
|
||||||
# timeout: 1800000
|
|
||||||
# modes:
|
|
||||||
# - action
|
|
||||||
@@ -25,8 +25,6 @@
|
|||||||
plugin_music_mode: recent
|
plugin_music_mode: recent
|
||||||
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
|
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
|
||||||
plugin_music_limit: 2
|
plugin_music_limit: 2
|
||||||
test:
|
|
||||||
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
|
||||||
|
|
||||||
- name: Spotify - Top tracks
|
- name: Spotify - Top tracks
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -37,8 +35,6 @@
|
|||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
plugin_music_time_range: short
|
plugin_music_time_range: short
|
||||||
plugin_music_top_type: tracks
|
plugin_music_top_type: tracks
|
||||||
test:
|
|
||||||
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
|
||||||
|
|
||||||
- name: Spotify - Top artists
|
- name: Spotify - Top artists
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -49,8 +45,6 @@
|
|||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
plugin_music_time_range: long
|
plugin_music_time_range: long
|
||||||
plugin_music_top_type: artists
|
plugin_music_top_type: artists
|
||||||
test:
|
|
||||||
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
|
||||||
|
|
||||||
- name: Youtube Music - Random track from playlist
|
- name: Youtube Music - Random track from playlist
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -67,8 +61,6 @@
|
|||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_mode: recent
|
plugin_music_mode: recent
|
||||||
plugin_music_provider: youtube
|
plugin_music_provider: youtube
|
||||||
test:
|
|
||||||
plugin_music_token: SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;
|
|
||||||
|
|
||||||
- name: Last.fm - Recently listed
|
- name: Last.fm - Recently listed
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -77,6 +69,4 @@
|
|||||||
plugin_music_token: ${{ secrets.LASTFM_TOKEN }}
|
plugin_music_token: ${{ secrets.LASTFM_TOKEN }}
|
||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_provider: lastfm
|
plugin_music_provider: lastfm
|
||||||
plugin_music_user: RJ
|
plugin_music_user: RJ
|
||||||
test:
|
|
||||||
plugin_music_token: MOCKED_TOKEN
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
- name: Nightscout plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_nightscout: yes
|
|
||||||
plugin_nightscout_url: https://testapp.herokuapp.com/
|
|
||||||
|
|
||||||
- name: Nightscout plugin (without graph)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_nightscout: yes
|
|
||||||
plugin_nightscout_url: https://testapp.herokuapp.com/
|
|
||||||
plugin_nightscout_datapoints: 0
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Notable plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_notable: yes
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
- name: PageSpeed plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_pagespeed_token: MOCKED_TOKEN
|
|
||||||
plugin_pagespeed: yes
|
|
||||||
|
|
||||||
- name: PageSpeed plugin (different url)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_pagespeed_token: MOCKED_TOKEN
|
|
||||||
plugin_pagespeed: yes
|
|
||||||
plugin_pagespeed_url: github.com
|
|
||||||
|
|
||||||
- name: PageSpeed plugin (detailed)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_pagespeed_token: MOCKED_TOKEN
|
|
||||||
plugin_pagespeed: yes
|
|
||||||
plugin_pagespeed_detailed: yes
|
|
||||||
|
|
||||||
- name: PageSpeed plugin (screenshot)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_pagespeed_token: MOCKED_TOKEN
|
|
||||||
plugin_pagespeed: yes
|
|
||||||
plugin_pagespeed_screenshot: yes
|
|
||||||
|
|
||||||
- name: PageSpeed plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_pagespeed_token: MOCKED_TOKEN
|
|
||||||
plugin_pagespeed: yes
|
|
||||||
plugin_pagespeed_detailed: yes
|
|
||||||
plugin_pagespeed_screenshot: yes
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
- name: People plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
|
|
||||||
- name: People plugin (followers)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: followers
|
|
||||||
|
|
||||||
- name: People plugin (following)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: following
|
|
||||||
|
|
||||||
- name: People plugin (sponsoring)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: sponsoring
|
|
||||||
|
|
||||||
- name: People plugin (sponsors)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: sponsors
|
|
||||||
|
|
||||||
- name: People plugin (custom sponsors)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: sponsors
|
|
||||||
plugin_people_sponsors_custom: lowlighter, octocat
|
|
||||||
|
|
||||||
- name: People plugin (stargazers)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: stargazers
|
|
||||||
|
|
||||||
- name: People plugin (watchers)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: watchers
|
|
||||||
|
|
||||||
- name: People plugin (thanks)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_types: thanks
|
|
||||||
plugin_people_thanks: lowlighter
|
|
||||||
|
|
||||||
- name: People plugin (identicons)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_people: yes
|
|
||||||
plugin_people_identicons: yes
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Poopmap plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_poopmap: yes
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
- name: Posts plugin (dev.to)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_posts: yes
|
|
||||||
plugin_posts_source: dev.to
|
|
||||||
plugin_posts_user: lowlighter
|
|
||||||
|
|
||||||
- name: Posts plugin (hashnode)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_posts: yes
|
|
||||||
plugin_posts_source: hashnode
|
|
||||||
plugin_posts_user: lowlighter
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
- name: Projects plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_projects: yes
|
|
||||||
|
|
||||||
- name: Projects plugin (repositories)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_projects: yes
|
|
||||||
plugin_projects_repositories: lowlighter/metrics/projects/1
|
|
||||||
plugin_projects_limit: 0
|
|
||||||
|
|
||||||
- name: Projects plugin (descriptions)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_projects: yes
|
|
||||||
plugin_projects_repositories: lowlighter/metrics/projects/1
|
|
||||||
plugin_projects_limit: 0
|
|
||||||
plugin_projects_descriptions: yes
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Reactions plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_reactions: yes
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
- name: Repositories plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_repositories: yes
|
|
||||||
plugin_repositories_list: metrics
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
- name: Feed from hacker news
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
filename: metrics.plugin.rss.svg
|
|
||||||
token: NOT_NEEDED
|
|
||||||
base: ""
|
|
||||||
plugin_rss: yes
|
|
||||||
plugin_rss_source: https://news.ycombinator.com/rss
|
|
||||||
plugin_rss_limit: 4
|
|
||||||
@@ -8,3 +8,7 @@
|
|||||||
plugin_screenshot_title: XKCD of the day
|
plugin_screenshot_title: XKCD of the day
|
||||||
plugin_screenshot_url: https://xkcd.com
|
plugin_screenshot_url: https://xkcd.com
|
||||||
plugin_screenshot_selector: "#comic img"
|
plugin_screenshot_selector: "#comic img"
|
||||||
|
test:
|
||||||
|
timeout: 1800000
|
||||||
|
modes:
|
||||||
|
- action
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
- name: Screenshot plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_screenshot: yes
|
|
||||||
plugin_screenshot_url: https://github.com
|
|
||||||
plugin_screenshot_title: Test
|
|
||||||
plugin_screenshot_selector: body
|
|
||||||
plugin_screenshot_background: no
|
|
||||||
timeout: 1800000
|
|
||||||
modes:
|
|
||||||
- action
|
|
||||||
@@ -7,3 +7,7 @@
|
|||||||
plugin_skyline_year: 2020
|
plugin_skyline_year: 2020
|
||||||
plugin_skyline_frames: 6
|
plugin_skyline_frames: 6
|
||||||
plugin_skyline_quality: 1
|
plugin_skyline_quality: 1
|
||||||
|
test:
|
||||||
|
timeout: 1800000
|
||||||
|
modes:
|
||||||
|
- action
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
- name: Skyline plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_skyline: yes
|
|
||||||
timeout: 1800000
|
|
||||||
modes:
|
|
||||||
- action
|
|
||||||
|
|
||||||
- name: Skyline plugin (compatibility)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_skyline: yes
|
|
||||||
plugin_skyline_compatibility: yes
|
|
||||||
timeout: 1800000
|
|
||||||
modes:
|
|
||||||
- action
|
|
||||||
|
|
||||||
- name: Skyline plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_skyline: yes
|
|
||||||
plugin_skyline_frames: 12
|
|
||||||
plugin_skyline_quality: 0.7
|
|
||||||
timeout: 1800000
|
|
||||||
modes:
|
|
||||||
- action
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Sponsors plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_sponsors: yes
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
- name: Stackoverflow plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_stackoverflow: yes
|
|
||||||
plugin_stackoverflow_user: 1
|
|
||||||
|
|
||||||
- name: Stackoverflow plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_stackoverflow: yes
|
|
||||||
plugin_stackoverflow_user: 1
|
|
||||||
plugin_stackoverflow_sections: answers-top, answers-recent, questions-top, questions-recent
|
|
||||||
plugin_stackoverflow_limit: 2
|
|
||||||
plugin_stackoverflow_lines: 4
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Stargazers plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_stargazers: yes
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Starlists plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_starlists: yes
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Stars plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_stars: yes
|
|
||||||
@@ -48,6 +48,7 @@ with:
|
|||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
base: ''
|
base: ''
|
||||||
plugin_stock: 'yes'
|
plugin_stock: 'yes'
|
||||||
|
plugin_stock_token: ${{ secrets.RAPIDAPI_TOKEN }}
|
||||||
plugin_stock_symbol: TSLA
|
plugin_stock_symbol: TSLA
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -5,4 +5,5 @@
|
|||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
base: ""
|
base: ""
|
||||||
plugin_stock: yes
|
plugin_stock: yes
|
||||||
|
plugin_stock_token: ${{ secrets.RAPIDAPI_TOKEN }}
|
||||||
plugin_stock_symbol: TSLA
|
plugin_stock_symbol: TSLA
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
- name: Stock plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_stock: yes
|
|
||||||
plugin_stock_token: MOCKED_TOKEN
|
|
||||||
plugin_stock_symbol: OCTO
|
|
||||||
|
|
||||||
- name: Stock plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_stock: yes
|
|
||||||
plugin_stock_token: MOCKED_TOKEN
|
|
||||||
plugin_stock_symbol: OCTO
|
|
||||||
plugin_stock_duration: 5d
|
|
||||||
plugin_stock_interval: 5m
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- name: Support plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_support: yes
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
- name: Topics plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
|
|
||||||
- name: Topics plugin (starred - starred sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: starred
|
|
||||||
plugin_topics_sort: starred
|
|
||||||
|
|
||||||
- name: Topics plugin (starred - activity sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: starred
|
|
||||||
plugin_topics_sort: activity
|
|
||||||
|
|
||||||
- name: Topics plugin (starred - stars sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: starred
|
|
||||||
plugin_topics_sort: stars
|
|
||||||
|
|
||||||
- name: Topics plugin (starred - random sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: starred
|
|
||||||
plugin_topics_sort: random
|
|
||||||
|
|
||||||
- name: Topics plugin (mastered - starred sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: mastered
|
|
||||||
plugin_topics_sort: starred
|
|
||||||
|
|
||||||
- name: Topics plugin (mastered - activity sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: mastered
|
|
||||||
plugin_topics_sort: activity
|
|
||||||
|
|
||||||
- name: Topics plugin (mastered - stars sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: mastered
|
|
||||||
plugin_topics_sort: stars
|
|
||||||
|
|
||||||
- name: Topics plugin (mastered - random sort)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
plugin_topics: yes
|
|
||||||
plugin_topics_mode: mastered
|
|
||||||
plugin_topics_sort: random
|
|
||||||
@@ -6,4 +6,5 @@
|
|||||||
base: repositories
|
base: repositories
|
||||||
plugin_traffic: yes
|
plugin_traffic: yes
|
||||||
prod:
|
prod:
|
||||||
token: ${{ secrets.METRICS_BOT_TOKEN }}
|
with:
|
||||||
|
token: ${{ secrets.METRICS_BOT_TOKEN }}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
- name: Traffic plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOCKEN
|
|
||||||
base: repositories
|
|
||||||
plugin_traffic: yes
|
|
||||||
@@ -7,7 +7,8 @@
|
|||||||
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
|
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
|
||||||
plugin_tweets_user: github
|
plugin_tweets_user: github
|
||||||
prod:
|
prod:
|
||||||
user: botlighter
|
with:
|
||||||
|
user: botlighter
|
||||||
|
|
||||||
- name: Latest tweets including attachments
|
- name: Latest tweets including attachments
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -19,5 +20,6 @@
|
|||||||
plugin_tweets_attachments: yes
|
plugin_tweets_attachments: yes
|
||||||
plugin_tweets_user: github
|
plugin_tweets_user: github
|
||||||
prod:
|
prod:
|
||||||
user: botlighter
|
with:
|
||||||
|
user: botlighter
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
- name: Tweets plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_tweets: yes
|
|
||||||
plugin_tweets_token: MOCKED_TOKEN
|
|
||||||
|
|
||||||
- name: Tweets plugin (different user)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_tweets: yes
|
|
||||||
plugin_tweets_user: twitterdev
|
|
||||||
plugin_tweets_token: MOCKED_TOKEN
|
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, os
|
plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, os
|
||||||
plugin_wakatime_token: ${{ secrets.WAKATIME_TOKEN }}
|
plugin_wakatime_token: ${{ secrets.WAKATIME_TOKEN }}
|
||||||
prod:
|
prod:
|
||||||
# ⚠️ Using mocked data because I don't really use WakaTime, disable this
|
# ⚠️ Using mocked data because I don't really use WakaTime
|
||||||
plugin_wakatime_token: MOCKED_TOKEN
|
with:
|
||||||
use_mocked_data: yes
|
plugin_wakatime_token: MOCKED_TOKEN
|
||||||
|
use_mocked_data: yes
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
- name: WakaTime plugin (default)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_wakatime_token: MOCKED_TOKEN
|
|
||||||
plugin_wakatime: yes
|
|
||||||
|
|
||||||
- name: WakaTime plugin (complete)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_wakatime_token: MOCKED_TOKEN
|
|
||||||
plugin_wakatime: yes
|
|
||||||
plugin_wakatime_limit: 4
|
|
||||||
plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, editors-graphs, os, os-graphs
|
|
||||||
|
|
||||||
- name: WakaTime plugin (projects hidden)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_wakatime_token: MOCKED_TOKEN_NO_PROJECTS
|
|
||||||
plugin_wakatime: yes
|
|
||||||
plugin_wakatime_sections: time, projects, languages
|
|
||||||
@@ -14,6 +14,7 @@ describe("Check files editions (checkout your files if needed)", () => {
|
|||||||
"source/templates/README.md",
|
"source/templates/README.md",
|
||||||
"action.yml",
|
"action.yml",
|
||||||
"settings.example.json",
|
"settings.example.json",
|
||||||
|
"tests/plugins/*",
|
||||||
])("%s", async file => expect((await diff()).includes(file)).toBe(false)))
|
])("%s", async file => expect((await diff()).includes(file)).toBe(false)))
|
||||||
describe("Repository level files were not modified", () =>
|
describe("Repository level files were not modified", () =>
|
||||||
void test.each([
|
void test.each([
|
||||||
@@ -27,6 +28,7 @@ describe("Check files editions (checkout your files if needed)", () => {
|
|||||||
".github/readme/partials/introduction.md",
|
".github/readme/partials/introduction.md",
|
||||||
".github/workflows/*",
|
".github/workflows/*",
|
||||||
".github/FUNDING.yml",
|
".github/FUNDING.yml",
|
||||||
|
".github/examples.mjs",
|
||||||
".github/index.mjs",
|
".github/index.mjs",
|
||||||
".github/release.mjs",
|
".github/release.mjs",
|
||||||
".github/markdown_example.mjs",
|
".github/markdown_example.mjs",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ const metadata = JSON.parse(`${
|
|||||||
const tests = []
|
const tests = []
|
||||||
for (const name in metadata.plugins) {
|
for (const name in metadata.plugins) {
|
||||||
const cases = yaml
|
const cases = yaml
|
||||||
.load(fs.readFileSync(path.join(__dirname, "../source/plugins", name, "tests.yml"), "utf8"))
|
.load(fs.readFileSync(path.join(__dirname, "../tests/plugins", name, "tests.yml"), "utf8"))
|
||||||
?.map(({ name: test, with: inputs, modes = [], timeout }) => {
|
?.map(({ name: test, with: inputs, modes = [], timeout }) => {
|
||||||
const skip = new Set(Object.entries(metadata.templates).filter(([_, { readme: { compatibility } }]) => !compatibility[name]).map(([template]) => template))
|
const skip = new Set(Object.entries(metadata.templates).filter(([_, { readme: { compatibility } }]) => !compatibility[name]).map(([template]) => template))
|
||||||
if (!(metadata.plugins[name].supports.includes("repository")))
|
if (!(metadata.plugins[name].supports.includes("repository")))
|
||||||
|
|||||||
16
tests/plugins/achievements/tests.yml
Normal file
16
tests/plugins/achievements/tests.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
- name: 🏆 Achievements - Detailed display
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_achievements: 'yes'
|
||||||
|
plugin_achievements_only: sponsor, maintainer, octonaut
|
||||||
|
- name: 🏆 Achievements - Compact display
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_achievements: 'yes'
|
||||||
|
plugin_achievements_only: >-
|
||||||
|
polyglot, stargazer, sponsor, deployer, member, maintainer, developer,
|
||||||
|
scripter, packager, explorer, infographile, manager
|
||||||
|
plugin_achievements_display: compact
|
||||||
|
plugin_achievements_threshold: X
|
||||||
8
tests/plugins/activity/tests.yml
Normal file
8
tests/plugins/activity/tests.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
- name: 📰 Recent activity - Recent activity
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_activity: 'yes'
|
||||||
|
plugin_activity_limit: 5
|
||||||
|
plugin_activity_days: 0
|
||||||
|
plugin_activity_filter: issue, pr, release, fork, review, ref/create
|
||||||
27
tests/plugins/anilist/tests.yml
Normal file
27
tests/plugins/anilist/tests.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
- name: >-
|
||||||
|
🌸 Anilist watch list and reading list - Favorites anime and currently
|
||||||
|
watching
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_anilist: 'yes'
|
||||||
|
plugin_anilist_medias: anime
|
||||||
|
plugin_anilist_sections: favorites, watching
|
||||||
|
plugin_anilist_limit: 1
|
||||||
|
- name: >-
|
||||||
|
🌸 Anilist watch list and reading list - Favorites manga and currently
|
||||||
|
reading
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_anilist: 'yes'
|
||||||
|
plugin_anilist_medias: manga
|
||||||
|
plugin_anilist_sections: favorites, reading
|
||||||
|
plugin_anilist_limit: 1
|
||||||
|
- name: 🌸 Anilist watch list and reading list - Favorites characters
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_anilist: 'yes'
|
||||||
|
plugin_anilist_sections: characters
|
||||||
|
plugin_anilist_limit_characters: 22
|
||||||
1
tests/plugins/base/tests.yml
Normal file
1
tests/plugins/base/tests.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
7
tests/plugins/code/tests.yml
Normal file
7
tests/plugins/code/tests.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: ♐ Code snippet of the day - JavaScript or TypeScript snippet of the day
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_code: 'yes'
|
||||||
|
plugin_code_languages: javascript, typescript
|
||||||
|
plugin_code_load: 400
|
||||||
22
tests/plugins/contributors/tests.yml
Normal file
22
tests/plugins/contributors/tests.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
- name: 🏅 Repository contributors - Contributors with contributions count
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
template: repository
|
||||||
|
repo: metrics
|
||||||
|
plugin_contributors: 'yes'
|
||||||
|
plugin_contributors_contributions: 'yes'
|
||||||
|
- name: 🏅 Repository contributors - Contributors by categories
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
template: repository
|
||||||
|
repo: metrics
|
||||||
|
plugin_contributors: 'yes'
|
||||||
|
plugin_contributors_sections: categories
|
||||||
|
plugin_contributors_categories: |
|
||||||
|
{
|
||||||
|
"🧩 Plugins / 🖼️ templates":["source/plugins/**", "source/templates/**"],
|
||||||
|
"📚 Documentation":["README.md", "**/README.md", "**/metadata.yml"],
|
||||||
|
"💻 Code (other)":["source/**", "Dockerfile"]
|
||||||
|
}
|
||||||
1
tests/plugins/core/tests.yml
Normal file
1
tests/plugins/core/tests.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
6
tests/plugins/discussions/tests.yml
Normal file
6
tests/plugins/discussions/tests.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
- name: 💬 Discussions - GitHub Discussions
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_discussions: 'yes'
|
||||||
|
plugin_discussions_categories_limit: 8
|
||||||
17
tests/plugins/followup/tests.yml
Normal file
17
tests/plugins/followup/tests.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
- name: 🎟️ Follow-up of issues and pull requests - Opened on user's repositories
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_followup: 'yes'
|
||||||
|
- name: 🎟️ Follow-up of issues and pull requests - Opened by user
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_followup: 'yes'
|
||||||
|
plugin_followup_sections: user
|
||||||
|
- name: 🎟️ Follow-up of issues and pull requests - Indepth analysis
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_followup: 'yes'
|
||||||
|
plugin_followup_indepth: 'yes'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
- name: Code plugin (default)
|
- name: 🎫 Gists - Gists
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
plugin_code: yes
|
plugin_gists: 'yes'
|
||||||
16
tests/plugins/habits/tests.yml
Normal file
16
tests/plugins/habits/tests.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
- name: 💡 Coding habits - Midly interesting facts
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_habits: 'yes'
|
||||||
|
plugin_habits_facts: 'yes'
|
||||||
|
plugin_habits_charts: 'no'
|
||||||
|
config_timezone: Europe/Paris
|
||||||
|
- name: 💡 Coding habits - Recent activity charts
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_habits: 'yes'
|
||||||
|
plugin_habits_facts: 'no'
|
||||||
|
plugin_habits_charts: 'yes'
|
||||||
|
config_timezone: Europe/Paris
|
||||||
15
tests/plugins/introduction/tests.yml
Normal file
15
tests/plugins/introduction/tests.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
- name: 🙋 Introduction - User introduction
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
user: github
|
||||||
|
base: header
|
||||||
|
plugin_introduction: 'yes'
|
||||||
|
- name: 🙋 Introduction - Repository introduction
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
template: repository
|
||||||
|
repo: metrics
|
||||||
|
base: header
|
||||||
|
plugin_introduction: 'yes'
|
||||||
11
tests/plugins/isocalendar/tests.yml
Normal file
11
tests/plugins/isocalendar/tests.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
- name: 📅 Isometric commit calendar - Half-year calendar
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_isocalendar: 'yes'
|
||||||
|
- name: 📅 Isometric commit calendar - Full-year calendar
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_isocalendar: 'yes'
|
||||||
|
plugin_isocalendar_duration: full-year
|
||||||
42
tests/plugins/languages/tests.yml
Normal file
42
tests/plugins/languages/tests.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
- name: 🈷️ Most used languages - Most used
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_languages: 'yes'
|
||||||
|
plugin_languages_ignored: >-
|
||||||
|
html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell,
|
||||||
|
gnuplot
|
||||||
|
plugin_languages_limit: 4
|
||||||
|
- name: 🈷️ Most used languages - Most used (with details)
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_languages: 'yes'
|
||||||
|
plugin_languages_ignored: >-
|
||||||
|
html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell,
|
||||||
|
gnuplot
|
||||||
|
plugin_languages_details: bytes-size, percentage
|
||||||
|
plugin_languages_limit: 4
|
||||||
|
- name: 🈷️ Most used languages - Recently used
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_languages: 'yes'
|
||||||
|
plugin_languages_ignored: >-
|
||||||
|
html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell,
|
||||||
|
gnuplot
|
||||||
|
plugin_languages_sections: recently-used
|
||||||
|
plugin_languages_details: bytes-size, percentage
|
||||||
|
plugin_languages_limit: 4
|
||||||
|
- name: 🈷️ Most used languages - Indepth analysis
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_languages: 'yes'
|
||||||
|
plugin_languages_ignored: >-
|
||||||
|
html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell,
|
||||||
|
gnuplot
|
||||||
|
plugin_languages_indepth: 'yes'
|
||||||
|
plugin_languages_details: lines, bytes-size
|
||||||
|
plugin_languages_limit: 4
|
||||||
|
plugin_languages_analysis_timeout: 15
|
||||||
21
tests/plugins/licenses/tests.yml
Normal file
21
tests/plugins/licenses/tests.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
- name: 📜 Repository licenses - Licenses and permissions
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
template: repository
|
||||||
|
repo: metrics
|
||||||
|
plugin_licenses: 'yes'
|
||||||
|
plugin_licenses_setup: npm ci
|
||||||
|
timeout: 1800000
|
||||||
|
modes:
|
||||||
|
- action
|
||||||
|
- name: 📜 Repository licenses - Licenses with open-source ratio graphs
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
template: repository
|
||||||
|
repo: metrics
|
||||||
|
plugin_licenses: 'yes'
|
||||||
|
plugin_licenses_setup: npm ci
|
||||||
|
plugin_licenses_legal: 'no'
|
||||||
|
plugin_licenses_ratio: 'yes'
|
||||||
|
skip: true
|
||||||
6
tests/plugins/lines/tests.yml
Normal file
6
tests/plugins/lines/tests.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
- name: 👨💻 Lines of code changed - Lines of code changed
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
base: repositories
|
||||||
|
plugin_lines: 'yes'
|
||||||
@@ -1,69 +1,63 @@
|
|||||||
- name: Music plugin (playlist - apple)
|
- name: 🎼 Music plugin - Apple Music - Random track from playlist
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
plugin_music: yes
|
plugin_music: 'yes'
|
||||||
plugin_music_playlist: https://embed.music.apple.com/fr/playlist/usr-share/pl.u-V9D7m8Etjmjd0D
|
plugin_music_playlist: https://embed.music.apple.com/fr/playlist/usr-share/pl.u-V9D7m8Etjmjd0D
|
||||||
|
plugin_music_limit: 2
|
||||||
- name: Music plugin (playlist - spotify)
|
- name: 🎼 Music plugin - Spotify - Random track from playlist
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
plugin_music: yes
|
plugin_music: 'yes'
|
||||||
plugin_music_playlist: https://open.spotify.com/embed/playlist/3nfA87oeJw4LFVcUDjRcqi
|
plugin_music_playlist: https://open.spotify.com/embed/playlist/3nfA87oeJw4LFVcUDjRcqi
|
||||||
|
- name: 🎼 Music plugin - Spotify - Recently listed
|
||||||
- name: Music plugin (playlist - yt music)
|
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
plugin_music: yes
|
plugin_music: 'yes'
|
||||||
plugin_music_playlist: https://music.youtube.com/playlist?list=OLAK5uy_kU_uxp9TUOl9zVdw77xith8o9AknVwz9U
|
|
||||||
|
|
||||||
- name: Music plugin (recent - spotify)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
|
||||||
plugin_music: yes
|
|
||||||
plugin_music_played_at: yes
|
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
|
|
||||||
- name: Music plugin (recent - lastfm)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_music_token: MOCKED_TOKEN
|
|
||||||
plugin_music: yes
|
|
||||||
plugin_music_provider: lastfm
|
|
||||||
plugin_music_user: RJ
|
|
||||||
|
|
||||||
- name: Music plugin (recent - yt music)
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: NOT_NEEDED
|
|
||||||
plugin_music_token: SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;
|
|
||||||
plugin_music: yes
|
|
||||||
plugin_music_mode: recent
|
plugin_music_mode: recent
|
||||||
plugin_music_provider: youtube
|
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
||||||
|
plugin_music_limit: 2
|
||||||
- name: Music plugin (top - spotify - tracks)
|
- name: 🎼 Music plugin - Spotify - Top tracks
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
plugin_music: 'yes'
|
||||||
plugin_music: yes
|
|
||||||
plugin_music_mode: top
|
plugin_music_mode: top
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
plugin_music_time_range: short
|
plugin_music_time_range: short
|
||||||
plugin_music_top_type: tracks
|
plugin_music_top_type: tracks
|
||||||
|
- name: 🎼 Music plugin - Spotify - Top artists
|
||||||
- name: Music plugin (top - spotify - artists)
|
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
plugin_music: 'yes'
|
||||||
plugin_music: yes
|
|
||||||
plugin_music_mode: top
|
plugin_music_mode: top
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
plugin_music_time_range: long
|
plugin_music_time_range: long
|
||||||
plugin_music_top_type: artists
|
plugin_music_top_type: artists
|
||||||
|
- name: 🎼 Music plugin - Youtube Music - Random track from playlist
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_music: 'yes'
|
||||||
|
plugin_music_playlist: >-
|
||||||
|
https://music.youtube.com/playlist?list=OLAK5uy_kU_uxp9TUOl9zVdw77xith8o9AknVwz9U
|
||||||
|
- name: 🎼 Music plugin - Youtube Music - Recently listed
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_music_token: undefined
|
||||||
|
plugin_music: 'yes'
|
||||||
|
plugin_music_mode: recent
|
||||||
|
plugin_music_provider: youtube
|
||||||
|
- name: 🎼 Music plugin - Last.fm - Recently listed
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_music_token: MOCKED_TOKEN
|
||||||
|
plugin_music: 'yes'
|
||||||
|
plugin_music_provider: lastfm
|
||||||
|
plugin_music_user: RJ
|
||||||
5
tests/plugins/nightscout/tests.yml
Normal file
5
tests/plugins/nightscout/tests.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: '💉 Nightscout - '
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
plugin_nightscout: 'yes'
|
||||||
|
plugin_nightscout_url: https://testapp.herokuapp.com/
|
||||||
12
tests/plugins/notable/tests.yml
Normal file
12
tests/plugins/notable/tests.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
- name: 🎩 Notable contributions - Contributions
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_notable: 'yes'
|
||||||
|
- name: 🎩 Notable contributions - Indepth analysis
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_notable: 'yes'
|
||||||
|
plugin_notable_indepth: 'yes'
|
||||||
|
plugin_notable_repositories: 'yes'
|
||||||
20
tests/plugins/pagespeed/tests.yml
Normal file
20
tests/plugins/pagespeed/tests.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
- name: ⏱️ Website performances - Succint report
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_pagespeed: 'yes'
|
||||||
|
plugin_pagespeed_token: MOCKED_TOKEN
|
||||||
|
- name: ⏱️ Website performances - Detailed report
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_pagespeed: 'yes'
|
||||||
|
plugin_pagespeed_detailed: 'yes'
|
||||||
|
plugin_pagespeed_token: MOCKED_TOKEN
|
||||||
|
- name: ⏱️ Website performances - Screenshot
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_pagespeed: 'yes'
|
||||||
|
plugin_pagespeed_screenshot: 'yes'
|
||||||
|
plugin_pagespeed_token: MOCKED_TOKEN
|
||||||
17
tests/plugins/people/tests.yml
Normal file
17
tests/plugins/people/tests.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
- name: 🧑🤝🧑 People plugin - Followers
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_people: 'yes'
|
||||||
|
plugin_people_types: followers
|
||||||
|
- name: 🧑🤝🧑 People plugin - Contributors and sponsors
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
template: repository
|
||||||
|
repo: metrics
|
||||||
|
plugin_people: 'yes'
|
||||||
|
plugin_people_types: contributors, stargazers, watchers, sponsors
|
||||||
|
plugin_people_sponsors_custom: >-
|
||||||
|
iamsainikhil, yutkat, KasparJohannesSchneider, ktnkk, tfSheol, haribo-io,
|
||||||
|
marcreichel
|
||||||
4
tests/plugins/poopmap/tests.yml
Normal file
4
tests/plugins/poopmap/tests.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: '💩 PoopMap plugin - '
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
plugin_poopmap: 'yes'
|
||||||
14
tests/plugins/posts/tests.yml
Normal file
14
tests/plugins/posts/tests.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
- name: ✒️ Recent posts - Recent posts
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_posts: 'yes'
|
||||||
|
plugin_posts_source: dev.to
|
||||||
|
- name: ✒️ Recent posts - Recent posts with descriptions and cover images
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_posts: 'yes'
|
||||||
|
plugin_posts_source: dev.to
|
||||||
|
plugin_posts_descriptions: 'yes'
|
||||||
|
plugin_posts_covers: 'yes'
|
||||||
7
tests/plugins/projects/tests.yml
Normal file
7
tests/plugins/projects/tests.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: 🗂️ Active projects - Project from a repository
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_projects: 'yes'
|
||||||
|
plugin_projects_repositories: lowlighter/metrics/projects/1
|
||||||
|
plugin_projects_descriptions: 'yes'
|
||||||
7
tests/plugins/reactions/tests.yml
Normal file
7
tests/plugins/reactions/tests.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: 🎭 Comment reactions - 🎭 Comment reactions
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_reactions: 'yes'
|
||||||
|
plugin_reactions_limit: 100
|
||||||
|
plugin_reactions_details: percentage
|
||||||
6
tests/plugins/repositories/tests.yml
Normal file
6
tests/plugins/repositories/tests.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
- name: 📓 Repositories - Featured repositories
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_repositories: 'yes'
|
||||||
|
plugin_repositories_featured: lowlighter/metrics
|
||||||
1
tests/plugins/rss/tests.yml
Normal file
1
tests/plugins/rss/tests.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
11
tests/plugins/screenshot/tests.yml
Normal file
11
tests/plugins/screenshot/tests.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
- name: 📸 Website screenshot - XKCD of the day
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_screenshot: 'yes'
|
||||||
|
plugin_screenshot_title: XKCD of the day
|
||||||
|
plugin_screenshot_url: https://xkcd.com
|
||||||
|
plugin_screenshot_selector: '#comic img'
|
||||||
|
timeout: 1800000
|
||||||
|
modes:
|
||||||
|
- action
|
||||||
11
tests/plugins/skyline/tests.yml
Normal file
11
tests/plugins/skyline/tests.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
- name: 🌇 GitHub Skyline 3D calendar - GitHub Skyline
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_skyline: 'yes'
|
||||||
|
plugin_skyline_year: 2020
|
||||||
|
plugin_skyline_frames: 6
|
||||||
|
plugin_skyline_quality: 1
|
||||||
|
timeout: 1800000
|
||||||
|
modes:
|
||||||
|
- action
|
||||||
11
tests/plugins/sponsors/tests.yml
Normal file
11
tests/plugins/sponsors/tests.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
- name: 💕 GitHub Sponsors - Sponsors goal
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_sponsors: 'yes'
|
||||||
|
plugin_sponsors_sections: goal
|
||||||
|
- name: 💕 GitHub Sponsors - Sponsors introduction
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_sponsors: 'yes'
|
||||||
8
tests/plugins/stackoverflow/tests.yml
Normal file
8
tests/plugins/stackoverflow/tests.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
- name: 🗨️ Stackoverflow plugin - Top answers from stackoverflow
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_stackoverflow: 'yes'
|
||||||
|
plugin_stackoverflow_user: 1
|
||||||
|
plugin_stackoverflow_sections: answers-top
|
||||||
|
plugin_stackoverflow_limit: 2
|
||||||
5
tests/plugins/stargazers/tests.yml
Normal file
5
tests/plugins/stargazers/tests.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: ✨ Stargazers over last weeks - Last weeks stargazers
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_stargazers: 'yes'
|
||||||
7
tests/plugins/starlists/tests.yml
Normal file
7
tests/plugins/starlists/tests.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: 💫 Starlists - Featured star list
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_starlists: 'yes'
|
||||||
|
plugin_starlists_limit_repositories: 2
|
||||||
|
plugin_starlists_only: 🤘 TC39
|
||||||
6
tests/plugins/stars/tests.yml
Normal file
6
tests/plugins/stars/tests.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
- name: 🌟 Recently starred repositories - Recently starred
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_stars: 'yes'
|
||||||
|
plugin_stars_limit: 3
|
||||||
7
tests/plugins/stock/tests.yml
Normal file
7
tests/plugins/stock/tests.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: 💹 Stock prices - Stock prices from Tesla
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_stock: 'yes'
|
||||||
|
plugin_stock_token: MOCKED_TOKEN
|
||||||
|
plugin_stock_symbol: TSLA
|
||||||
5
tests/plugins/support/tests.yml
Normal file
5
tests/plugins/support/tests.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: 💭 GitHub Community Support - GitHub Community Support
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_support: 'yes'
|
||||||
13
tests/plugins/topics/tests.yml
Normal file
13
tests/plugins/topics/tests.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
- name: 📌 Starred topics - Labels
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_topics: 'yes'
|
||||||
|
plugin_topics_limit: 12
|
||||||
|
- name: 📌 Starred topics - Icons
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
|
plugin_topics: 'yes'
|
||||||
|
plugin_topics_limit: 0
|
||||||
|
plugin_topics_mode: icons
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
- name: Lines plugin (default)
|
- name: 🧮 Repositories traffic - Repositories traffic
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
base: repositories
|
base: repositories
|
||||||
plugin_lines: yes
|
plugin_traffic: 'yes'
|
||||||
|
|
||||||
15
tests/plugins/tweets/tests.yml
Normal file
15
tests/plugins/tweets/tests.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
- name: 🐤 Latest tweets - Latest tweets
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_tweets: 'yes'
|
||||||
|
plugin_tweets_token: MOCKED_TOKEN
|
||||||
|
plugin_tweets_user: github
|
||||||
|
- name: 🐤 Latest tweets - Latest tweets including attachments
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_tweets: 'yes'
|
||||||
|
plugin_tweets_token: MOCKED_TOKEN
|
||||||
|
plugin_tweets_attachments: 'yes'
|
||||||
|
plugin_tweets_user: github
|
||||||
7
tests/plugins/wakatime/tests.yml
Normal file
7
tests/plugins/wakatime/tests.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: ⏰ WakaTime plugin - ⏰ WakaTime
|
||||||
|
uses: lowlighter/metrics@latest
|
||||||
|
with:
|
||||||
|
token: NOT_NEEDED
|
||||||
|
plugin_wakatime: 'yes'
|
||||||
|
plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, os
|
||||||
|
plugin_wakatime_token: MOCKED_TOKEN
|
||||||
Reference in New Issue
Block a user