Skip to content

Commit

Permalink
feat: add generate gif to ci
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Apr 30, 2024
1 parent 5bf448f commit bbebb60
Show file tree
Hide file tree
Showing 9 changed files with 322 additions and 43 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
go.sum linguist-generated text
gnovm/stdlibs/native.go linguist-generated
gnovm/tests/stdlibs/native.go linguist-generated
*.ascii binary
47 changes: 47 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: docs-gif

on:
pull_request:
paths:
# XXX: for now keep the paths for gnovm, tm2, gnoland and misc the same,
# so that coverage information is uploaded for all of them together.
# This could be removed in the future.
- "gnovm/**"
- "tm2/**"
- "gno.land/**"
- "misc/**"
- "examples/**"
- ".github/workflows/**"
# XXX: end copied part, below is the "ideal" paths on which this workflow should run
- "go.sum"
- "gnovm/**.go"
- "gnovm/**.gno"
- "tm2/**.go"
- "gno.land/**"
- ".github/workflows/gnoland.yml"
push:
branches: [ "master" ]

jobs:
generate:
strategy:
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: charmbracelet/vhs-action@v1
- name: go install
run: make install
- name: Run vhs
run: make gif
- name: Check for any changes
id: git-check
run: |
git diff --exit-code > /dev/null && exit 0
echo "change detected after generating gif"
git diff HEAD
exit 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Output
Output gnokey-generate.gif
# disable golden files as the output is random
# Output gnokey-generate.golden.ascii
Output gnokey-generate.golden.ascii

# Requirement
Require gnokey
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@







































────────────────────────────────────────────────────────────────────────────────







































────────────────────────────────────────────────────────────────────────────────
>






































────────────────────────────────────────────────────────────────────────────────
> gnokey generate




























────────────────────────────────────────────────────────────────────────────────
> gnokey generate




























────────────────────────────────────────────────────────────────────────────────
> gnokey generate
master combine person room portion just pilot glare winner screen tray adapt sting grain stage
media flock scissors phrase time culture cherry two cycle
>

























────────────────────────────────────────────────────────────────────────────────
> gnokey generate
master combine person room portion just pilot glare winner screen tray adapt sting grain stage
media flock scissors phrase time culture cherry two cycle
>

























────────────────────────────────────────────────────────────────────────────────
> gnokey generate
master combine person room portion just pilot glare winner screen tray adapt sting grain stage
media flock scissors phrase time culture cherry two cycle
> ^C
>
























────────────────────────────────────────────────────────────────────────────────
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@



















Expand Down Expand Up @@ -76,19 +63,6 @@



















Expand All @@ -104,20 +78,7 @@


────────────────────────────────────────────────────────────────────────────────














>



Expand Down
Binary file modified docs/assets/gno-tooling/gnodev/gnodev.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bbebb60

Please sign in to comment.