Files
TokenizeRWATemplate/.github/workflows/tokenizerwatemplate-contracts-ci.yaml
Raghav d62f2fd1ca
Some checks failed
Release / Run TokenizeRWATemplate-contracts release (push) Has been cancelled
Release / Run TokenizeRWATemplate-frontend release (push) Has been cancelled
Update project templates and workspace configuration files
Co-Authored-By: Oz <oz-agent@warp.dev>
2026-04-16 10:38:17 +05:30

73 lines
2.3 KiB
YAML
Executable File

name: Validate TokenizeRWATemplate-contracts
on:
workflow_call:
jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: "**/package-lock.json"
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install algokit
run: pipx install algokit
- name: Start LocalNet
run: algokit localnet start
- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'TokenizeRWATemplate-contracts'
- name: Configure git
shell: bash
run: |
# set git user and email as test invoke git
git config --global user.email "actions@github.com" && git config --global user.name "github-actions"
- name: Audit dependencies
run: algokit project run audit --project-name 'TokenizeRWATemplate-contracts'
- name: Lint and format
run: algokit project run lint --project-name 'TokenizeRWATemplate-contracts'
- name: Run tests
shell: bash
run: |
set -o pipefail
algokit project run test --project-name 'TokenizeRWATemplate-contracts'
- name: Build smart contracts
run: algokit project run build --project-name 'TokenizeRWATemplate-contracts'
- name: Scan TEAL files for issues
run: algokit project run audit-teal --project-name 'TokenizeRWATemplate-contracts'
# # Uncomment to enable TEAL static analysis with snapshoting using Tealer package
# # Would first require running locally using audit-teal command and committing the snapshots into source control
# # Please note, tealer has a known bug that may result in large snapshot file sizes, track resolution here:
# # https://github.com/crytic/tealer/issues/101
# - name: Check output stability of the smart contracts
# run: algokit project run ci-teal-diff --project-name 'TokenizeRWATemplate-contracts'
- name: Run deployer against LocalNet
run: algokit project deploy localnet --project-name 'TokenizeRWATemplate-contracts'