|
| 1 | +name: Validate orakle-nft-marketplace-app-contracts |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + |
| 6 | +jobs: |
| 7 | + validate: |
| 8 | + runs-on: "ubuntu-latest" |
| 9 | + steps: |
| 10 | + - name: Checkout source code |
| 11 | + uses: actions/checkout@v4 |
| 12 | + |
| 13 | + - name: Install poetry |
| 14 | + run: pipx install poetry |
| 15 | + |
| 16 | + - name: Set up Python 3.12 |
| 17 | + uses: actions/setup-python@v5 |
| 18 | + with: |
| 19 | + python-version: "3.12" |
| 20 | + cache: "poetry" |
| 21 | + |
| 22 | + - name: Install algokit |
| 23 | + run: pipx install algokit |
| 24 | + |
| 25 | + - name: Start LocalNet |
| 26 | + run: algokit localnet start |
| 27 | + |
| 28 | + - name: Bootstrap dependencies |
| 29 | + run: algokit project bootstrap all --project-name 'orakle-nft-marketplace-app-contracts' |
| 30 | + |
| 31 | + - name: Configure git |
| 32 | + shell: bash |
| 33 | + run: | |
| 34 | + # set git user and email as test invoke git |
| 35 | + git config --global user.email "[email protected]" && git config --global user.name "github-actions" |
| 36 | +
|
| 37 | + - name: Audit python dependencies |
| 38 | + run: algokit project run audit --project-name 'orakle-nft-marketplace-app-contracts' |
| 39 | + |
| 40 | + - name: Lint and format python dependencies |
| 41 | + run: algokit project run lint --project-name 'orakle-nft-marketplace-app-contracts' |
| 42 | + |
| 43 | + - name: Run tests |
| 44 | + shell: bash |
| 45 | + run: | |
| 46 | + set -o pipefail |
| 47 | + algokit project run test --project-name 'orakle-nft-marketplace-app-contracts' |
| 48 | +
|
| 49 | + - name: Build smart contracts |
| 50 | + run: algokit project run build --project-name 'orakle-nft-marketplace-app-contracts' |
| 51 | + |
| 52 | + - name: Scan TEAL files for issues |
| 53 | + run: algokit project run audit-teal --project-name 'orakle-nft-marketplace-app-contracts' |
| 54 | + |
| 55 | + - name: Check output stability of the smart contracts |
| 56 | + run: algokit project run ci-teal-diff --project-name 'orakle-nft-marketplace-app-contracts' |
| 57 | + |
| 58 | + - name: Run deployer against LocalNet |
| 59 | + run: algokit project deploy localnet --project-name 'orakle-nft-marketplace-app-contracts' |
0 commit comments