tests: fix faulty tests
This commit is contained in:
2
.github/examples.mjs
vendored
2
.github/examples.mjs
vendored
@@ -39,7 +39,7 @@ const secrets = {
|
|||||||
METRICS_BOT_TOKEN:"MOCKED_TOKEN",
|
METRICS_BOT_TOKEN:"MOCKED_TOKEN",
|
||||||
PAGESPEED_TOKEN:"MOCKED_TOKEN",
|
PAGESPEED_TOKEN:"MOCKED_TOKEN",
|
||||||
SPOTIFY_TOKENS:"MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN",
|
SPOTIFY_TOKENS:"MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN",
|
||||||
YOUTUBE_MUSIC_TOKEN:"SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;",
|
YOUTUBE_MUSIC_TOKENS:"SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;",
|
||||||
LASTFM_TOKEN:"MOCKED_TOKEN",
|
LASTFM_TOKEN:"MOCKED_TOKEN",
|
||||||
NIGHTSCOUT_URL:"https://testapp.herokuapp.com/",
|
NIGHTSCOUT_URL:"https://testapp.herokuapp.com/",
|
||||||
WAKATIME_TOKEN:"MOCKED_TOKEN",
|
WAKATIME_TOKEN:"MOCKED_TOKEN",
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
base: ""
|
base: ""
|
||||||
plugin_achievements: yes
|
plugin_achievements: yes
|
||||||
plugin_achievements_only: sponsor, maintainer, octonaut
|
plugin_achievements_only: sponsor, maintainer, octonaut
|
||||||
|
test:
|
||||||
|
timeout: 1800000
|
||||||
|
|
||||||
- name: Compact display
|
- name: Compact display
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
@@ -17,3 +19,5 @@
|
|||||||
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: 1800000
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_mode: top
|
plugin_music_mode: top
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
|
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
|
||||||
plugin_music_time_range: short
|
plugin_music_time_range: short
|
||||||
plugin_music_top_type: tracks
|
plugin_music_top_type: tracks
|
||||||
|
|
||||||
@@ -43,6 +44,7 @@
|
|||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_mode: top
|
plugin_music_mode: top
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
|
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
|
||||||
plugin_music_time_range: long
|
plugin_music_time_range: long
|
||||||
plugin_music_top_type: artists
|
plugin_music_top_type: artists
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
- uses: lowlighter/metrics@latest
|
- uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.METRICS_TOKEN }}
|
||||||
plugin_nightscout: yes
|
plugin_nightscout: yes
|
||||||
plugin_nightscout_url: ${{ secrets.NIGHTSCOUT_URL }}
|
plugin_nightscout_url: ${{ secrets.NIGHTSCOUT_URL }}
|
||||||
prod:
|
prod:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
- uses: lowlighter/metrics@latest
|
- uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.METRICS_TOKEN }}
|
||||||
plugin_poopmap: yes
|
plugin_poopmap: yes
|
||||||
prod:
|
prod:
|
||||||
skip: true
|
skip: true
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: 🎭 Comment reactions
|
- name: Comment reactions
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
filename: metrics.plugin.reactions.svg
|
filename: metrics.plugin.reactions.svg
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: ⏰ WakaTime
|
- name: WakaTime
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
filename: metrics.plugin.wakatime.svg
|
filename: metrics.plugin.wakatime.svg
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
plugin_achievements: 'yes'
|
plugin_achievements: 'yes'
|
||||||
plugin_achievements_only: sponsor, maintainer, octonaut
|
plugin_achievements_only: sponsor, maintainer, octonaut
|
||||||
|
timeout: 1800000
|
||||||
- name: 🏆 Achievements - Compact display
|
- name: 🏆 Achievements - Compact display
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
@@ -14,3 +15,4 @@
|
|||||||
scripter, packager, explorer, infographile, manager
|
scripter, packager, explorer, infographile, manager
|
||||||
plugin_achievements_display: compact
|
plugin_achievements_display: compact
|
||||||
plugin_achievements_threshold: X
|
plugin_achievements_threshold: X
|
||||||
|
timeout: 1800000
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
- name: 🧱 Core - 📗 Classic template
|
- name: 🧱 Core - Classic template
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
base: header, repositories
|
base: header, repositories
|
||||||
plugin_lines: 'yes'
|
plugin_lines: 'yes'
|
||||||
- name: 🧱 Core - 📘 Repository template
|
- name: 🧱 Core - Repository template
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
template: repository
|
template: repository
|
||||||
@@ -15,20 +15,20 @@
|
|||||||
plugin_followup: 'yes'
|
plugin_followup: 'yes'
|
||||||
plugin_projects: 'yes'
|
plugin_projects: 'yes'
|
||||||
plugin_projects_repositories: lowlighter/metrics/projects/1
|
plugin_projects_repositories: lowlighter/metrics/projects/1
|
||||||
- name: 🧱 Core - 📙 Terminal template
|
- name: 🧱 Core - Terminal template
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
template: terminal
|
template: terminal
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
base: header, metadata
|
base: header, metadata
|
||||||
- name: 🧱 Core - 📒 Markdown template
|
- name: 🧱 Core - Markdown template
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
template: markdown
|
template: markdown
|
||||||
markdown: metrics.markdown.template.md
|
markdown: metrics.markdown.template.md
|
||||||
config_output: markdown
|
config_output: markdown
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
- name: 🧱 Core - 📒 Markdown template (with plugins)
|
- name: 🧱 Core - Markdown template (with plugins)
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
template: markdown
|
template: markdown
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
plugin_isocalendar: 'yes'
|
plugin_isocalendar: 'yes'
|
||||||
plugin_languages: 'yes'
|
plugin_languages: 'yes'
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
- name: 🧱 Core - 📒 Markdown template (pdf output)
|
- name: 🧱 Core - Markdown template (pdf output)
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
template: markdown
|
template: markdown
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
config_twemoji: 'yes'
|
config_twemoji: 'yes'
|
||||||
config_padding: 5%
|
config_padding: 5%
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
- name: 🧱 Core - 📕 Community templates
|
- name: 🧱 Core - Community templates
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
@@ -79,12 +79,6 @@
|
|||||||
setup_community_templates: lowlighter/metrics@master:classic
|
setup_community_templates: lowlighter/metrics@master:classic
|
||||||
modes:
|
modes:
|
||||||
- action
|
- action
|
||||||
- name: 🧱 Core - Plugin error example
|
|
||||||
uses: lowlighter/metrics@latest
|
|
||||||
with:
|
|
||||||
token: MOCKED_TOKEN
|
|
||||||
plugin_projects: 'yes'
|
|
||||||
skip: true
|
|
||||||
- name: 🧱 Core - Organization
|
- name: 🧱 Core - Organization
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -8,14 +8,3 @@
|
|||||||
timeout: 1800000
|
timeout: 1800000
|
||||||
modes:
|
modes:
|
||||||
- action
|
- 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
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
plugin_music: 'yes'
|
plugin_music: 'yes'
|
||||||
plugin_music_mode: top
|
plugin_music_mode: top
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
|
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
||||||
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 - Spotify - Top artists
|
||||||
@@ -36,6 +37,7 @@
|
|||||||
plugin_music: 'yes'
|
plugin_music: 'yes'
|
||||||
plugin_music_mode: top
|
plugin_music_mode: top
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
|
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
|
||||||
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
|
- name: 🎼 Music plugin - Youtube Music - Random track from playlist
|
||||||
@@ -49,7 +51,7 @@
|
|||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
plugin_music_token: undefined
|
plugin_music_token: SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;
|
||||||
plugin_music: 'yes'
|
plugin_music: 'yes'
|
||||||
plugin_music_mode: recent
|
plugin_music_mode: recent
|
||||||
plugin_music_provider: youtube
|
plugin_music_provider: youtube
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
- name: '💉 Nightscout - '
|
- name: '💉 Nightscout - '
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
plugin_nightscout: 'yes'
|
plugin_nightscout: 'yes'
|
||||||
plugin_nightscout_url: https://testapp.herokuapp.com/
|
plugin_nightscout_url: https://testapp.herokuapp.com/
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
- name: '💩 PoopMap plugin - '
|
- name: '💩 PoopMap plugin - '
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
|
token: MOCKED_TOKEN
|
||||||
plugin_poopmap: 'yes'
|
plugin_poopmap: 'yes'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: 🎭 Comment reactions - 🎭 Comment reactions
|
- name: 🎭 Comment reactions - Comment reactions
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: MOCKED_TOKEN
|
token: MOCKED_TOKEN
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: ⏰ WakaTime plugin - ⏰ WakaTime
|
- name: ⏰ WakaTime plugin - WakaTime
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@latest
|
||||||
with:
|
with:
|
||||||
token: NOT_NEEDED
|
token: NOT_NEEDED
|
||||||
|
|||||||
Reference in New Issue
Block a user