Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: templatize project name param #88

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,27 @@
"dependsOn": ["Cleanup playground folder"],
"problemMatcher": []
},
{
"label": "Run template using algokit (template prompts, --no-workspace)",
"command": "algokit",
"args": [
"-v",
"init",
"--name",
"playground",
"--no-git",
"--UNSAFE-SECURITY-accept-template-url",
"--template-url",
"${workspaceFolder}",
"--template-url-ref",
"HEAD",
"--no-bootstrap",
"--no-workspace"
],
"type": "shell",
"dependsOn": ["Cleanup playground folder"],
"problemMatcher": []
},
{
"label": "Cleanup playground folder",
"command": "rm",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pipx install algokit

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'production_python_smart_contract_python'
run: algokit project bootstrap all

- name: Configure git
shell: bash
Expand All @@ -40,7 +40,7 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Deploy to testnet
run: algokit deploy testnet --project-name 'production_python_smart_contract_python'
run: algokit project deploy testnet
env:
# This is the account that becomes the creator of the contract
DEPLOYER_MNEMONIC: ${{ secrets.DEPLOYER_MNEMONIC }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: algokit localnet start

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'production_python_smart_contract_python'
run: algokit project bootstrap all

- name: Configure git
shell: bash
Expand All @@ -36,29 +36,29 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Audit python dependencies
run: algokit project run audit --project-name 'production_python_smart_contract_python'
run: algokit project run audit

- name: Lint and format python dependencies
run: algokit project run lint --project-name 'production_python_smart_contract_python'
run: algokit project run lint

- name: Run tests
shell: bash
run: |
set -o pipefail
algokit project run test --project-name 'production_python_smart_contract_python'
algokit project run test

- name: Build smart contracts
run: algokit project run build --project-name 'production_python_smart_contract_python'
run: algokit project run build

- name: Scan TEAL files for issues
run: algokit project run audit-teal --project-name 'production_python_smart_contract_python'
run: algokit project run audit-teal

# # 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 'production_python_smart_contract_python'
# run: algokit project run ci-teal-diff

- name: Run deployer against LocalNet
run: algokit project deploy localnet --project-name 'production_python_smart_contract_python'
run: algokit project deploy localnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pipx install algokit

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'production_python_smart_contract_typescript'
run: algokit project bootstrap all

- name: Configure git
shell: bash
Expand All @@ -40,7 +40,7 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Deploy to testnet
run: algokit deploy testnet --project-name 'production_python_smart_contract_typescript'
run: algokit project deploy testnet
env:
# This is the account that becomes the creator of the contract
DEPLOYER_MNEMONIC: ${{ secrets.DEPLOYER_MNEMONIC }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: algokit localnet start

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'production_python_smart_contract_typescript'
run: algokit project bootstrap all

- name: Configure git
shell: bash
Expand All @@ -36,29 +36,29 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Audit python dependencies
run: algokit project run audit --project-name 'production_python_smart_contract_typescript'
run: algokit project run audit

- name: Lint and format python dependencies
run: algokit project run lint --project-name 'production_python_smart_contract_typescript'
run: algokit project run lint

- name: Run tests
shell: bash
run: |
set -o pipefail
algokit project run test --project-name 'production_python_smart_contract_typescript'
algokit project run test

- name: Build smart contracts
run: algokit project run build --project-name 'production_python_smart_contract_typescript'
run: algokit project run build

- name: Scan TEAL files for issues
run: algokit project run audit-teal --project-name 'production_python_smart_contract_typescript'
run: algokit project run audit-teal

# # 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 'production_python_smart_contract_typescript'
# run: algokit project run ci-teal-diff

- name: Run deployer against LocalNet
run: algokit project deploy localnet --project-name 'production_python_smart_contract_typescript'
run: algokit project deploy localnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pipx install algokit

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'production_python'
run: algokit project bootstrap all

- name: Configure git
shell: bash
Expand All @@ -40,7 +40,7 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Deploy to testnet
run: algokit deploy testnet --project-name 'production_python'
run: algokit project deploy testnet
env:
# This is the account that becomes the creator of the contract
DEPLOYER_MNEMONIC: ${{ secrets.DEPLOYER_MNEMONIC }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: algokit localnet start

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name 'production_python'
run: algokit project bootstrap all

- name: Configure git
shell: bash
Expand All @@ -36,29 +36,29 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Audit python dependencies
run: algokit project run audit --project-name 'production_python'
run: algokit project run audit

- name: Lint and format python dependencies
run: algokit project run lint --project-name 'production_python'
run: algokit project run lint

- name: Run tests
shell: bash
run: |
set -o pipefail
algokit project run test --project-name 'production_python'
algokit project run test

- name: Build smart contracts
run: algokit project run build --project-name 'production_python'
run: algokit project run build

- name: Scan TEAL files for issues
run: algokit project run audit-teal --project-name 'production_python'
run: algokit project run audit-teal

# # 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 'production_python'
# run: algokit project run ci-teal-diff

- name: Run deployer against LocalNet
run: algokit project deploy localnet --project-name 'production_python'
run: algokit project deploy localnet
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: pipx install algokit

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name '{{ project_name }}'
run: algokit project bootstrap all {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Configure git
shell: bash
Expand All @@ -45,7 +45,7 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Deploy to testnet
run: algokit deploy testnet --project-name '{{ project_name }}'
run: algokit project deploy testnet {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}
env:
{%- if use_dispenser %}
# This is the account that becomes the creator of the contract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: algokit localnet start

- name: Bootstrap dependencies
run: algokit project bootstrap all --project-name '{{ project_name }}'
run: algokit project bootstrap all {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Configure git
shell: bash
Expand All @@ -39,29 +39,29 @@ jobs:
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Audit python dependencies
run: algokit project run audit --project-name '{{ project_name }}'
run: algokit project run audit {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Lint and format python dependencies
run: algokit project run lint --project-name '{{ project_name }}'
run: algokit project run lint {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Run tests
shell: bash
run: |
set -o pipefail
algokit project run test --project-name '{{ project_name }}'
algokit project run test {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Build smart contracts
run: algokit project run build --project-name '{{ project_name }}'
run: algokit project run build {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Scan TEAL files for issues
run: algokit project run audit-teal --project-name '{{ project_name }}'
run: algokit project run audit-teal {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

# # 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 '{{ project_name }}'
# run: algokit project run ci-teal-diff {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

- name: Run deployer against LocalNet
run: algokit project deploy localnet --project-name '{{ project_name }}'
run: algokit project deploy localnet {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}
Loading