feat: add test script and fix templates for latest tari_template_lib #1
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test-templates: | |
| name: Test Templates | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - name: Install cargo-generate | |
| run: cargo install cargo-generate | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Run template tests | |
| run: ./scripts/test-templates.sh |