generated from algorandfoundation/algokit-beaker-default-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: templatize project name param (#88)
- Loading branch information
1 parent
b2a122b
commit e33861d
Showing
9 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 %} |