Add GIFs to CI via vhs-action #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Artifacts | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validate_artifacts: | |
name: Generate ASCII artifacts | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- artifact: boa_cli_intro | |
name: boa_cli | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo install --path ./cli | |
# Below is from vhs-actions examples | |
# https://github.com/charmbracelet/vhs-action/blob/main/examples/auto-commit.yml | |
- uses: charmbracelet/vhs-action@v1 | |
with: | |
version: v0.9.0 | |
path: './.github/tapes/ci/${{ matrix.name }}.tape' | |
- run: | | |
diff ./tmp/${{ matrix.name }}.ascii \ | |
./.github/tapes/diff/${{ matrix.name }}.ascii | |
# Clean up tmp directory created by ci/boa_cli.tape, just in case | |
- run: rm -rf ./tmp |