From 3c4730b0f60b27f5a0b2b2a931218a28146fc0c9 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Fri, 14 Jan 2022 00:03:15 -0500 Subject: [PATCH] ci: auto-regenerate files [skip ci] --- source/plugins/base/README.md | 8 +++ source/plugins/rss/README.md | 11 ++++ tests/plugins/base.yml | 6 +- tests/plugins/core.yml | 111 +++++++++++++++++++++++++++++++++- tests/plugins/rss.yml | 8 ++- 5 files changed, 141 insertions(+), 3 deletions(-) diff --git a/source/plugins/base/README.md b/source/plugins/base/README.md index 7c1e73e5..11eb635e 100644 --- a/source/plugins/base/README.md +++ b/source/plugins/base/README.md @@ -48,5 +48,13 @@ Legend for option icons: #### â„šī¸ Examples workflows +```yaml +name: Default metrics +uses: lowlighter/metrics@latest +with: + filename: metrics.base.svg + token: ${{ secrets.METRICS_TOKEN }} + base: header, activity, community, repositories, metadata +``` diff --git a/source/plugins/rss/README.md b/source/plugins/rss/README.md index ca409420..38e2de91 100644 --- a/source/plugins/rss/README.md +++ b/source/plugins/rss/README.md @@ -29,5 +29,16 @@ Legend for option icons: #### â„šī¸ Examples workflows +```yaml +name: News from hackernews +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 +``` \ No newline at end of file diff --git a/tests/plugins/base.yml b/tests/plugins/base.yml index fe51488c..897f6473 100644 --- a/tests/plugins/base.yml +++ b/tests/plugins/base.yml @@ -1 +1,5 @@ -[] +- name: đŸ—ƒī¸ Base content - Default metrics + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + base: header, activity, community, repositories, metadata diff --git a/tests/plugins/core.yml b/tests/plugins/core.yml index fe51488c..18327818 100644 --- a/tests/plugins/core.yml +++ b/tests/plugins/core.yml @@ -1 +1,110 @@ -[] +- name: 🧱 Core - 📗 Classic template + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + base: header, repositories + plugin_lines: 'yes' +- name: 🧱 Core - 📘 Repository template + uses: lowlighter/metrics@latest + with: + template: repository + token: MOCKED_TOKEN + user: lowlighter + repo: metrics + plugin_lines: 'yes' + plugin_followup: 'yes' + plugin_projects: 'yes' + plugin_projects_repositories: lowlighter/metrics/projects/1 +- name: 🧱 Core - 📙 Terminal template + uses: lowlighter/metrics@latest + with: + template: terminal + token: MOCKED_TOKEN + base: header, metadata +- 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) + uses: lowlighter/metrics@latest + with: + template: markdown + markdown: >- + https://raw.githubusercontent.com/lowlighter/metrics/master/source/templates/markdown/example.md + config_output: markdown + plugin_activity: 'yes' + plugin_activity_limit: 7 + plugin_activity_days: 0 + plugin_activity_filter: issue, pr, release, fork, review, ref/create + plugin_posts: 'yes' + plugin_posts_source: dev.to + plugin_posts_descriptions: 'yes' + plugin_posts_covers: 'yes' + plugin_posts_limit: 2 + plugin_rss: 'yes' + plugin_rss_source: https://news.ycombinator.com/rss + plugin_rss_limit: 4 + plugin_tweets: 'yes' + plugin_tweets_token: MOCKED_TOKEN + plugin_tweets_user: github + plugin_tweets_attachments: 'yes' + plugin_tweets_limit: 2 + plugin_topics: 'yes' + plugin_topics_limit: 24 + plugin_isocalendar: 'yes' + plugin_languages: 'yes' + token: MOCKED_TOKEN +- name: 🧱 Core - 📒 Markdown template (pdf output) + uses: lowlighter/metrics@latest + with: + template: markdown + markdown: >- + https://raw.githubusercontent.com/lowlighter/metrics/master/source/templates/markdown/example.pdf.md + config_output: markdown-pdf + plugin_rss: 'yes' + plugin_rss_source: https://news.ycombinator.com/rss + plugin_rss_limit: 4 + plugin_isocalendar: 'yes' + config_twemoji: 'yes' + config_padding: 5% + token: MOCKED_TOKEN +- name: 🧱 Core - 📕 Community templates + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + template: '@classic' + 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: + user: github + token: MOCKED_TOKEN + base: header, repositories +- name: 🧱 Core - Large display + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + config_display: large +- name: 🧱 Core - JSON metrics + if: ${{ success() || failure() }} + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + config_output: json +- name: 🧱 Core - PNG metrics + if: ${{ success() || failure() }} + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + config_output: png diff --git a/tests/plugins/rss.yml b/tests/plugins/rss.yml index fe51488c..ba457f9d 100644 --- a/tests/plugins/rss.yml +++ b/tests/plugins/rss.yml @@ -1 +1,7 @@ -[] +- name: đŸ—ŧ Rss feed - News from hackernews + uses: lowlighter/metrics@latest + with: + token: NOT_NEEDED + plugin_rss: 'yes' + plugin_rss_source: https://news.ycombinator.com/rss + plugin_rss_limit: 4