mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
* Wrote a simple render_svg.ts file that generates the svg given an github username, theme and out path. * render_svg.ts generates output dir if not exsists. * Added Section to README.md that explains how to use the render_svg.ts script. * Added an github action that utilizes the render_svg.ts script. * Added Usage of github action to README.md * Added simple CI Check if action runs. * Ran: deno fmt
26 lines
686 B
YAML
26 lines
686 B
YAML
name: Test GitHub Profile Trophy Action
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
test-trophy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout this repo
|
|
uses: actions/checkout@v4
|
|
- name: Test Action
|
|
id: trophy
|
|
uses: ./.
|
|
with:
|
|
username: ${{ github.repository_owner }}
|
|
output_path: ./trophy.svg
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Verify SVG generated
|
|
run: |
|
|
if [ -f trophy.svg ]; then
|
|
echo "SVG exsists ($(wc -c < trophy.svg) Bytes)"
|
|
file trophy.svg
|
|
else
|
|
echo "SVG failed to generate"
|
|
exit 1
|
|
fi
|