diff --git a/.github/examples.mjs b/.github/examples.mjs index f5082e35..16ca37f2 100644 --- a/.github/examples.mjs +++ b/.github/examples.mjs @@ -39,7 +39,7 @@ const secrets = { 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;", + YOUTUBE_MUSIC_TOKENS:"SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;", LASTFM_TOKEN:"MOCKED_TOKEN", NIGHTSCOUT_URL:"https://testapp.herokuapp.com/", WAKATIME_TOKEN:"MOCKED_TOKEN", diff --git a/source/plugins/achievements/examples.yml b/source/plugins/achievements/examples.yml index 8198cc02..74a68696 100644 --- a/source/plugins/achievements/examples.yml +++ b/source/plugins/achievements/examples.yml @@ -6,6 +6,8 @@ base: "" plugin_achievements: yes plugin_achievements_only: sponsor, maintainer, octonaut + test: + timeout: 1800000 - name: Compact display 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_display: compact plugin_achievements_threshold: X + test: + timeout: 1800000 \ No newline at end of file diff --git a/source/plugins/music/examples.yml b/source/plugins/music/examples.yml index 5c4ee485..089e49c2 100644 --- a/source/plugins/music/examples.yml +++ b/source/plugins/music/examples.yml @@ -33,6 +33,7 @@ plugin_music: yes plugin_music_mode: top plugin_music_provider: spotify + plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }} plugin_music_time_range: short plugin_music_top_type: tracks @@ -43,6 +44,7 @@ plugin_music: yes plugin_music_mode: top plugin_music_provider: spotify + plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }} plugin_music_time_range: long plugin_music_top_type: artists diff --git a/source/plugins/nightscout/examples.yml b/source/plugins/nightscout/examples.yml index 90f10969..f6fd61e7 100644 --- a/source/plugins/nightscout/examples.yml +++ b/source/plugins/nightscout/examples.yml @@ -1,5 +1,6 @@ - uses: lowlighter/metrics@latest with: + token: ${{ secrets.METRICS_TOKEN }} plugin_nightscout: yes plugin_nightscout_url: ${{ secrets.NIGHTSCOUT_URL }} prod: diff --git a/source/plugins/poopmap/examples.yml b/source/plugins/poopmap/examples.yml index c2f64b35..2821c088 100644 --- a/source/plugins/poopmap/examples.yml +++ b/source/plugins/poopmap/examples.yml @@ -1,5 +1,6 @@ - uses: lowlighter/metrics@latest with: + token: ${{ secrets.METRICS_TOKEN }} plugin_poopmap: yes prod: skip: true \ No newline at end of file diff --git a/source/plugins/reactions/examples.yml b/source/plugins/reactions/examples.yml index c5e675c3..7c28ca8b 100644 --- a/source/plugins/reactions/examples.yml +++ b/source/plugins/reactions/examples.yml @@ -1,4 +1,4 @@ -- name: 🎭 Comment reactions +- name: Comment reactions uses: lowlighter/metrics@latest with: filename: metrics.plugin.reactions.svg diff --git a/source/plugins/wakatime/examples.yml b/source/plugins/wakatime/examples.yml index 29ebdb15..83f8246d 100644 --- a/source/plugins/wakatime/examples.yml +++ b/source/plugins/wakatime/examples.yml @@ -1,4 +1,4 @@ -- name: ⏰ WakaTime +- name: WakaTime uses: lowlighter/metrics@latest with: filename: metrics.plugin.wakatime.svg diff --git a/tests/plugins/achievements.yml b/tests/plugins/achievements.yml index 31b660c8..84ca7106 100644 --- a/tests/plugins/achievements.yml +++ b/tests/plugins/achievements.yml @@ -4,6 +4,7 @@ token: MOCKED_TOKEN plugin_achievements: 'yes' plugin_achievements_only: sponsor, maintainer, octonaut + timeout: 1800000 - name: 🏆 Achievements - Compact display uses: lowlighter/metrics@latest with: @@ -14,3 +15,4 @@ scripter, packager, explorer, infographile, manager plugin_achievements_display: compact plugin_achievements_threshold: X + timeout: 1800000 diff --git a/tests/plugins/core.yml b/tests/plugins/core.yml index 18327818..3ccbfa20 100644 --- a/tests/plugins/core.yml +++ b/tests/plugins/core.yml @@ -1,10 +1,10 @@ -- name: 🧱 Core - 📗 Classic template +- name: 🧱 Core - Classic template uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN base: header, repositories plugin_lines: 'yes' -- name: 🧱 Core - 📘 Repository template +- name: 🧱 Core - Repository template uses: lowlighter/metrics@latest with: template: repository @@ -15,20 +15,20 @@ plugin_followup: 'yes' plugin_projects: 'yes' plugin_projects_repositories: lowlighter/metrics/projects/1 -- name: 🧱 Core - 📙 Terminal template +- name: 🧱 Core - Terminal template uses: lowlighter/metrics@latest with: template: terminal token: MOCKED_TOKEN base: header, metadata -- name: 🧱 Core - 📒 Markdown template +- name: 🧱 Core - Markdown template uses: lowlighter/metrics@latest with: template: markdown markdown: metrics.markdown.template.md config_output: markdown token: MOCKED_TOKEN -- name: 🧱 Core - 📒 Markdown template (with plugins) +- name: 🧱 Core - Markdown template (with plugins) uses: lowlighter/metrics@latest with: template: markdown @@ -57,7 +57,7 @@ plugin_isocalendar: 'yes' plugin_languages: 'yes' token: MOCKED_TOKEN -- name: 🧱 Core - 📒 Markdown template (pdf output) +- name: 🧱 Core - Markdown template (pdf output) uses: lowlighter/metrics@latest with: template: markdown @@ -71,7 +71,7 @@ config_twemoji: 'yes' config_padding: 5% token: MOCKED_TOKEN -- name: 🧱 Core - 📕 Community templates +- name: 🧱 Core - Community templates uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN @@ -79,12 +79,6 @@ setup_community_templates: lowlighter/metrics@master:classic modes: - action -- name: 🧱 Core - Plugin error example - uses: lowlighter/metrics@latest - with: - token: MOCKED_TOKEN - plugin_projects: 'yes' - skip: true - name: 🧱 Core - Organization uses: lowlighter/metrics@latest with: diff --git a/tests/plugins/licenses.yml b/tests/plugins/licenses.yml index f4ae901a..17e908e2 100644 --- a/tests/plugins/licenses.yml +++ b/tests/plugins/licenses.yml @@ -8,14 +8,3 @@ 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 diff --git a/tests/plugins/music.yml b/tests/plugins/music.yml index c9304a07..7c58b539 100644 --- a/tests/plugins/music.yml +++ b/tests/plugins/music.yml @@ -27,6 +27,7 @@ plugin_music: 'yes' plugin_music_mode: top plugin_music_provider: spotify + plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN plugin_music_time_range: short plugin_music_top_type: tracks - name: 🎼 Music plugin - Spotify - Top artists @@ -36,6 +37,7 @@ plugin_music: 'yes' plugin_music_mode: top plugin_music_provider: spotify + plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN plugin_music_time_range: long plugin_music_top_type: artists - name: 🎼 Music plugin - Youtube Music - Random track from playlist @@ -49,7 +51,7 @@ uses: lowlighter/metrics@latest with: token: NOT_NEEDED - plugin_music_token: undefined + plugin_music_token: SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE; plugin_music: 'yes' plugin_music_mode: recent plugin_music_provider: youtube diff --git a/tests/plugins/nightscout.yml b/tests/plugins/nightscout.yml index 97fcc29a..57434439 100644 --- a/tests/plugins/nightscout.yml +++ b/tests/plugins/nightscout.yml @@ -1,5 +1,6 @@ - name: '💉 Nightscout - ' uses: lowlighter/metrics@latest with: + token: MOCKED_TOKEN plugin_nightscout: 'yes' plugin_nightscout_url: https://testapp.herokuapp.com/ diff --git a/tests/plugins/poopmap.yml b/tests/plugins/poopmap.yml index 14686270..660bce21 100644 --- a/tests/plugins/poopmap.yml +++ b/tests/plugins/poopmap.yml @@ -1,4 +1,5 @@ - name: '💩 PoopMap plugin - ' uses: lowlighter/metrics@latest with: + token: MOCKED_TOKEN plugin_poopmap: 'yes' diff --git a/tests/plugins/reactions.yml b/tests/plugins/reactions.yml index 3263ab4b..50f0ba0b 100644 --- a/tests/plugins/reactions.yml +++ b/tests/plugins/reactions.yml @@ -1,4 +1,4 @@ -- name: 🎭 Comment reactions - 🎭 Comment reactions +- name: 🎭 Comment reactions - Comment reactions uses: lowlighter/metrics@latest with: token: MOCKED_TOKEN diff --git a/tests/plugins/wakatime.yml b/tests/plugins/wakatime.yml index c0bd4b67..5a56aa36 100644 --- a/tests/plugins/wakatime.yml +++ b/tests/plugins/wakatime.yml @@ -1,4 +1,4 @@ -- name: ⏰ WakaTime plugin - ⏰ WakaTime +- name: ⏰ WakaTime plugin - WakaTime uses: lowlighter/metrics@latest with: token: NOT_NEEDED