test(plugins/community/splatoon): add to workflows
This commit is contained in:
2
.github/scripts/files/examples.yml
vendored
2
.github/scripts/files/examples.yml
vendored
@@ -18,6 +18,8 @@ on:
|
||||
required: true
|
||||
GOOGLE_MAP_TOKEN:
|
||||
required: true
|
||||
SPLATOON_TOKEN:
|
||||
required: true
|
||||
SPOTIFY_TOKENS:
|
||||
required: true
|
||||
STOCK_TOKEN:
|
||||
|
||||
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -159,6 +159,7 @@ jobs:
|
||||
CHESS_TOKEN: ${{ secrets.CHESS_TOKEN }}
|
||||
PAGESPEED_TOKEN: ${{ secrets.PAGESPEED_TOKEN }}
|
||||
GOOGLE_MAP_TOKEN: ${{ secrets.GOOGLE_MAP_TOKEN }}
|
||||
SPLATOON_TOKEN: ${{ secrets.SPLATOON_TOKEN }}
|
||||
SPOTIFY_TOKENS: ${{ secrets.SPOTIFY_TOKENS }}
|
||||
STOCK_TOKEN: ${{ secrets.STOCK_TOKEN }}
|
||||
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }}
|
||||
|
||||
17
.github/workflows/examples.yml
vendored
17
.github/workflows/examples.yml
vendored
@@ -18,6 +18,8 @@ on:
|
||||
required: true
|
||||
GOOGLE_MAP_TOKEN:
|
||||
required: true
|
||||
SPLATOON_TOKEN:
|
||||
required: true
|
||||
SPOTIFY_TOKENS:
|
||||
required: true
|
||||
STOCK_TOKEN:
|
||||
@@ -1147,6 +1149,21 @@ jobs:
|
||||
user: lowlighter
|
||||
plugins_errors_fatal: yes
|
||||
if: ${{ success() || failure() }}
|
||||
- name: 🦑 Splatoon - Example
|
||||
uses: lowlighter/metrics@master
|
||||
with:
|
||||
filename: metrics.plugin.splatoon.svg
|
||||
token: ${{ secrets.METRICS_TOKEN }}
|
||||
base: ""
|
||||
plugin_splatoon: yes
|
||||
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
|
||||
extras_css: |
|
||||
h2 { display: none !important; }
|
||||
output_action: none
|
||||
delay: 120
|
||||
user: lowlighter
|
||||
plugins_errors_fatal: yes
|
||||
if: ${{ success() || failure() }}
|
||||
- name: 💹 Stock prices - Stock prices from Tesla
|
||||
uses: lowlighter/metrics@master
|
||||
with:
|
||||
|
||||
@@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" align="center">
|
||||
<h3><a href="/README.md#-plugins">🧩 Customizable with 42 plugins and 302 options!</a></h3>
|
||||
<h3><a href="/README.md#-plugins">🧩 Customizable with 43 plugins and 307 options!</a></h3>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -465,6 +465,7 @@ Plugins provide additional content and lets you customize rendered metrics.
|
||||
* [💉 Nightscout <sub>`nightscout`</sub>](/source/plugins/community/nightscout/README.md) by [@legoandmars](https://github.com/legoandmars)
|
||||
* [💩 PoopMap plugin <sub>`poopmap`</sub>](/source/plugins/community/poopmap/README.md) by [@matievisthekat](https://github.com/matievisthekat)
|
||||
* [📸 Website screenshot <sub>`screenshot`</sub>](/source/plugins/community/screenshot/README.md) by [@lowlighter](https://github.com/lowlighter)
|
||||
* [🦑 Splatoon <sub>`splatoon`</sub>](/source/plugins/community/splatoon/README.md) by [@lowlighter](https://github.com/lowlighter)
|
||||
* [💹 Stock prices <sub>`stock`</sub>](/source/plugins/community/stock/README.md) by [@lowlighter](https://github.com/lowlighter)
|
||||
|
||||
|
||||
|
||||
23
action.yml
generated
23
action.yml
generated
@@ -1322,6 +1322,29 @@ inputs:
|
||||
description: Background
|
||||
default: <default-value>
|
||||
|
||||
# ====================================================================================
|
||||
# 🦑 Splatoon
|
||||
|
||||
plugin_splatoon:
|
||||
description: Enable splatoon plugin
|
||||
default: <default-value>
|
||||
|
||||
plugin_splatoon_token:
|
||||
description: Splatnet token
|
||||
default: <default-value>
|
||||
|
||||
plugin_splatoon_modes:
|
||||
description: Displayed modes
|
||||
default: <default-value>
|
||||
|
||||
plugin_splatoon_versus_limit:
|
||||
description: Display limit (Versus)
|
||||
default: <default-value>
|
||||
|
||||
plugin_splatoon_salmon_limit:
|
||||
description: Display limit (Salmon run)
|
||||
default: <default-value>
|
||||
|
||||
# ====================================================================================
|
||||
# 💹 Stock prices
|
||||
|
||||
|
||||
4
settings.example.json
generated
4
settings.example.json
generated
@@ -194,6 +194,10 @@
|
||||
"screenshot":{
|
||||
"enabled": false, "//": "Enable screenshot plugin"
|
||||
},
|
||||
"splatoon":{
|
||||
"token": "Splatnet token",
|
||||
"enabled": false, "//": "Enable splatoon plugin"
|
||||
},
|
||||
"stock":{
|
||||
"token": "Yahoo Finance token",
|
||||
"enabled": false, "//": "Enable stock plugin"
|
||||
|
||||
@@ -53,5 +53,6 @@ Plugins provide additional content and lets you customize rendered metrics.
|
||||
* [💉 Nightscout <sub>`nightscout`</sub>](/source/plugins/community/nightscout/README.md) by [@legoandmars](https://github.com/legoandmars)
|
||||
* [💩 PoopMap plugin <sub>`poopmap`</sub>](/source/plugins/community/poopmap/README.md) by [@matievisthekat](https://github.com/matievisthekat)
|
||||
* [📸 Website screenshot <sub>`screenshot`</sub>](/source/plugins/community/screenshot/README.md) by [@lowlighter](https://github.com/lowlighter)
|
||||
* [🦑 Splatoon <sub>`splatoon`</sub>](/source/plugins/community/splatoon/README.md) by [@lowlighter](https://github.com/lowlighter)
|
||||
* [💹 Stock prices <sub>`stock`</sub>](/source/plugins/community/stock/README.md) by [@lowlighter](https://github.com/lowlighter)
|
||||
|
||||
|
||||
@@ -30,17 +30,27 @@
|
||||
</td>
|
||||
</tr> <tr>
|
||||
<th><a href="/source/plugins/community/screenshot/README.md">📸 Website screenshot</a></th>
|
||||
<th><a href="/source/plugins/community/stock/README.md">💹 Stock prices</a></th>
|
||||
<th><a href="/source/plugins/community/splatoon/README.md">🦑 Splatoon</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.screenshot.svg" alt=""></img>
|
||||
<img width="900" height="1" alt="">
|
||||
</td>
|
||||
<td align="center">
|
||||
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.splatoon.svg" alt=""></img>
|
||||
<img width="900" height="1" alt="">
|
||||
</td>
|
||||
</tr> <tr>
|
||||
<th><a href="/source/plugins/community/stock/README.md">💹 Stock prices</a></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img alt="" width="400" src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stock.svg" alt=""></img>
|
||||
<img width="900" height="1" alt="">
|
||||
</td>
|
||||
<td align="center"><img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -1,9 +1,108 @@
|
||||
<!--header-->
|
||||
<table>
|
||||
<tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>
|
||||
<tr><th colspan="2"><h3>🦑 Splatoon</h3></th></tr>
|
||||
<tr><td colspan="2" align="center"><p>This plugin displays your Splatoon 3 recent matches based on data fetched from Splatnet.</p>
|
||||
</td></tr>
|
||||
<tr><th>⚠️ Disclaimer</th><td><p>This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with <a href="https://www.nintendo.com">Nintendo</a> or <a href="https://splatoon.nintendo.com">Splatoon</a>.
|
||||
All product and company names are trademarks™ or registered® trademarks of their respective holders.</p>
|
||||
<p>This specific plugin is licensed under GPL-3.0 rather than MIT to comply with <a href="https://github.com/spacemeowx2/s3si.ts">spacemeowx2/s3si.ts</a> license.</p>
|
||||
<p>Note that <em>Nintendo Switch Online</em> web tokens usage are not explicitly allowed by <em>Nintendo</em>, use at your own risk.</p>
|
||||
</td></tr>
|
||||
<tr><th>Authors</th><td><a href="https://github.com/lowlighter">@lowlighter</a></td></tr>
|
||||
<tr>
|
||||
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
|
||||
<td><a href="/source/templates/classic/README.md"><code>📗 Classic template</code></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>👤 Users</code> <code>👥 Organizations</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>🗝️ plugin_splatoon_token</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.splatoon.svg" alt=""></img>
|
||||
<img width="900" height="1" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--/header-->
|
||||
|
||||
## ➡️ Available options
|
||||
|
||||
<!--options-->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" nowrap="nowrap">Option</i></td><td align="center" nowrap="nowrap">Description</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><h4><code>plugin_splatoon</code></h4></td>
|
||||
<td rowspan="2"><p>Enable splatoon plugin</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">✨ On <code>master</code>/<code>main</code><br>
|
||||
<b>type:</b> <code>boolean</code>
|
||||
<br>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><h4><code>plugin_splatoon_token</code></h4></td>
|
||||
<td rowspan="2"><p>Splatnet token</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🔐 Token<br>
|
||||
✨ On <code>master</code>/<code>main</code><br>
|
||||
🌐 Web instances must configure <code>settings.json</code>:
|
||||
<ul>
|
||||
<li><i>metrics.api.nintendo.splatnet</i></li>
|
||||
</ul>
|
||||
<b>type:</b> <code>token</code>
|
||||
<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><h4><code>plugin_splatoon_modes</code></h4></td>
|
||||
<td rowspan="2"><p>Displayed modes</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">✨ On <code>master</code>/<code>main</code><br>
|
||||
<b>type:</b> <code>array</code>
|
||||
<i>(comma-separated)</i>
|
||||
<br>
|
||||
<b>default:</b> turf-war, splat-zones, tower-control, rainmaker, clam-blitz, salmon-run<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><h4><code>plugin_splatoon_versus_limit</code></h4></td>
|
||||
<td rowspan="2"><p>Display limit (Versus)</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">✨ On <code>master</code>/<code>main</code><br>
|
||||
<b>type:</b> <code>number</code>
|
||||
<i>(0 ≤
|
||||
𝑥
|
||||
≤ 6)</i>
|
||||
<br>
|
||||
<b>default:</b> 1<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><h4><code>plugin_splatoon_salmon_limit</code></h4></td>
|
||||
<td rowspan="2"><p>Display limit (Salmon run)</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">✨ On <code>master</code>/<code>main</code><br>
|
||||
<b>type:</b> <code>number</code>
|
||||
<i>(0 ≤
|
||||
𝑥
|
||||
≤ 6)</i>
|
||||
<br>
|
||||
<b>default:</b> 1<br></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--/options-->
|
||||
|
||||
## 🗝️ Obtaining a *Nintendo Switch Online* token
|
||||
@@ -22,4 +121,17 @@ deno run --allow-run=deno --allow-read=profile.json --allow-write=profile.json -
|
||||
## ℹ️ Examples workflows
|
||||
|
||||
<!--examples-->
|
||||
```yaml
|
||||
name: Example
|
||||
uses: lowlighter/metrics@latest
|
||||
with:
|
||||
filename: metrics.plugin.splatoon.svg
|
||||
token: ${{ secrets.METRICS_TOKEN }}
|
||||
base: ""
|
||||
plugin_splatoon: yes
|
||||
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
|
||||
extras_css: |
|
||||
h2 { display: none !important; }
|
||||
|
||||
```
|
||||
<!--/examples-->
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
base: ""
|
||||
plugin_splatoon: yes
|
||||
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
|
||||
extras_css: |
|
||||
h2 { display: none !important; }
|
||||
test:
|
||||
skip: true
|
||||
prod:
|
||||
skip: true
|
||||
|
||||
@@ -7,7 +7,7 @@ This is also the default template.</p>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
|
||||
<td><a href="/source/plugins/achievements/README.md" title="🏆 Achievements">🏆</a> <a href="/source/plugins/activity/README.md" title="📰 Recent activity">📰</a> <a href="/source/plugins/anilist/README.md" title="🌸 Anilist watch list and reading list">🌸</a> <a href="/source/plugins/calendar/README.md" title="📆 Commit calendar">📆</a> <a href="/source/plugins/code/README.md" title="♐ Random code snippet">♐</a> <a href="/source/plugins/chess/README.md" title="♟️ Chess">♟️</a> <a href="/source/plugins/fortune/README.md" title="🥠 Fortune">🥠</a> <a href="/source/plugins/nightscout/README.md" title="💉 Nightscout">💉</a> <a href="/source/plugins/poopmap/README.md" title="💩 PoopMap plugin">💩</a> <a href="/source/plugins/screenshot/README.md" title="📸 Website screenshot">📸</a> <a href="/source/plugins/stock/README.md" title="💹 Stock prices">💹</a> <a href="/source/plugins/discussions/README.md" title="💬 Discussions">💬</a> <a href="/source/plugins/followup/README.md" title="🎟️ Follow-up of issues and pull requests">🎟️</a> <a href="/source/plugins/gists/README.md" title="🎫 Gists">🎫</a> <a href="/source/plugins/habits/README.md" title="💡 Coding habits and activity">💡</a> <a href="/source/plugins/introduction/README.md" title="🙋 Introduction">🙋</a> <a href="/source/plugins/isocalendar/README.md" title="📅 Isometric commit calendar">📅</a> <a href="/source/plugins/languages/README.md" title="🈷️ Languages activity">🈷️</a> <a href="/source/plugins/leetcode/README.md" title="🗳️ Leetcode">🗳️</a> <a href="/source/plugins/lines/README.md" title="👨💻 Lines of code changed">👨💻</a> <a href="/source/plugins/music/README.md" title="🎼 Music activity and suggestions">🎼</a> <a href="/source/plugins/notable/README.md" title="🎩 Notable contributions">🎩</a> <a href="/source/plugins/pagespeed/README.md" title="⏱️ Google PageSpeed">⏱️</a> <a href="/source/plugins/people/README.md" title="🧑🤝🧑 People">🧑🤝🧑</a> <a href="/source/plugins/posts/README.md" title="✒️ Recent posts">✒️</a> <a href="/source/plugins/projects/README.md" title="🗂️ GitHub projects">🗂️</a> <a href="/source/plugins/reactions/README.md" title="🎭 Comment reactions">🎭</a> <a href="/source/plugins/repositories/README.md" title="📓 Featured repositories">📓</a> <a href="/source/plugins/rss/README.md" title="🗼 Rss feed">🗼</a> <a href="/source/plugins/skyline/README.md" title="🌇 GitHub Skyline">🌇</a> <a href="/source/plugins/sponsors/README.md" title="💕 GitHub Sponsors">💕</a> <a href="/source/plugins/stackoverflow/README.md" title="🗨️ Stack Overflow">🗨️</a> <a href="/source/plugins/stargazers/README.md" title="✨ Stargazers">✨</a> <a href="/source/plugins/starlists/README.md" title="💫 Star lists">💫</a> <a href="/source/plugins/stars/README.md" title="🌟 Recently starred repositories">🌟</a> <a href="/source/plugins/support/README.md" title="💭 GitHub Community Support">💭</a> <a href="/source/plugins/topics/README.md" title="📌 Starred topics">📌</a> <a href="/source/plugins/traffic/README.md" title="🧮 Repositories traffic">🧮</a> <a href="/source/plugins/tweets/README.md" title="🐤 Latest tweets">🐤</a> <a href="/source/plugins/wakatime/README.md" title="⏰ WakaTime">⏰</a></td>
|
||||
<td><a href="/source/plugins/achievements/README.md" title="🏆 Achievements">🏆</a> <a href="/source/plugins/activity/README.md" title="📰 Recent activity">📰</a> <a href="/source/plugins/anilist/README.md" title="🌸 Anilist watch list and reading list">🌸</a> <a href="/source/plugins/calendar/README.md" title="📆 Commit calendar">📆</a> <a href="/source/plugins/code/README.md" title="♐ Random code snippet">♐</a> <a href="/source/plugins/chess/README.md" title="♟️ Chess">♟️</a> <a href="/source/plugins/fortune/README.md" title="🥠 Fortune">🥠</a> <a href="/source/plugins/nightscout/README.md" title="💉 Nightscout">💉</a> <a href="/source/plugins/poopmap/README.md" title="💩 PoopMap plugin">💩</a> <a href="/source/plugins/screenshot/README.md" title="📸 Website screenshot">📸</a> <a href="/source/plugins/splatoon/README.md" title="🦑 Splatoon">🦑</a> <a href="/source/plugins/stock/README.md" title="💹 Stock prices">💹</a> <a href="/source/plugins/discussions/README.md" title="💬 Discussions">💬</a> <a href="/source/plugins/followup/README.md" title="🎟️ Follow-up of issues and pull requests">🎟️</a> <a href="/source/plugins/gists/README.md" title="🎫 Gists">🎫</a> <a href="/source/plugins/habits/README.md" title="💡 Coding habits and activity">💡</a> <a href="/source/plugins/introduction/README.md" title="🙋 Introduction">🙋</a> <a href="/source/plugins/isocalendar/README.md" title="📅 Isometric commit calendar">📅</a> <a href="/source/plugins/languages/README.md" title="🈷️ Languages activity">🈷️</a> <a href="/source/plugins/leetcode/README.md" title="🗳️ Leetcode">🗳️</a> <a href="/source/plugins/lines/README.md" title="👨💻 Lines of code changed">👨💻</a> <a href="/source/plugins/music/README.md" title="🎼 Music activity and suggestions">🎼</a> <a href="/source/plugins/notable/README.md" title="🎩 Notable contributions">🎩</a> <a href="/source/plugins/pagespeed/README.md" title="⏱️ Google PageSpeed">⏱️</a> <a href="/source/plugins/people/README.md" title="🧑🤝🧑 People">🧑🤝🧑</a> <a href="/source/plugins/posts/README.md" title="✒️ Recent posts">✒️</a> <a href="/source/plugins/projects/README.md" title="🗂️ GitHub projects">🗂️</a> <a href="/source/plugins/reactions/README.md" title="🎭 Comment reactions">🎭</a> <a href="/source/plugins/repositories/README.md" title="📓 Featured repositories">📓</a> <a href="/source/plugins/rss/README.md" title="🗼 Rss feed">🗼</a> <a href="/source/plugins/skyline/README.md" title="🌇 GitHub Skyline">🌇</a> <a href="/source/plugins/sponsors/README.md" title="💕 GitHub Sponsors">💕</a> <a href="/source/plugins/stackoverflow/README.md" title="🗨️ Stack Overflow">🗨️</a> <a href="/source/plugins/stargazers/README.md" title="✨ Stargazers">✨</a> <a href="/source/plugins/starlists/README.md" title="💫 Star lists">💫</a> <a href="/source/plugins/stars/README.md" title="🌟 Recently starred repositories">🌟</a> <a href="/source/plugins/support/README.md" title="💭 GitHub Community Support">💭</a> <a href="/source/plugins/topics/README.md" title="📌 Starred topics">📌</a> <a href="/source/plugins/traffic/README.md" title="🧮 Repositories traffic">🧮</a> <a href="/source/plugins/tweets/README.md" title="🐤 Latest tweets">🐤</a> <a href="/source/plugins/wakatime/README.md" title="⏰ WakaTime">⏰</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>👤 Users</code> <code>👥 Organizations</code></td>
|
||||
|
||||
1
tests/cases/splatoon.plugin.yml
Normal file
1
tests/cases/splatoon.plugin.yml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -12,5 +12,6 @@
|
||||
"GOOGLE_MAP_TOKEN": "MOCKED_TOKEN",
|
||||
"STOCK_TOKEN":"MOCKED_TOKEN",
|
||||
"CHESS_TOKEN":"MOCKED_TOKEN",
|
||||
"SPLATOON_TOKEN":"{}",
|
||||
"POOPMAP_TOKEN":"MOCKED_TOKEN"
|
||||
}
|
||||
Reference in New Issue
Block a user