-
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.
chore: updating examples for puya and react only for now
- Loading branch information
1 parent
74e4c32
commit 9dd225d
Showing
109 changed files
with
436 additions
and
423 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
60 changes: 0 additions & 60 deletions
60
examples/production_puya_react/.github/workflows/frontend-cd.yaml
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
examples/production_puya_react/.github/workflows/frontend-ci.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,13 @@ | ||
name: Backend CD | ||
name: Release production_puya_react-contracts | ||
|
||
on: | ||
workflow_call: | ||
|
||
concurrency: release | ||
|
||
jobs: | ||
ci-check: | ||
name: Perform smart contract checks | ||
uses: ./.github/workflows/smart-contracts-ci.yaml | ||
|
||
deploy-testnet: | ||
runs-on: 'ubuntu-latest' | ||
needs: ci-check | ||
environment: Test | ||
runs-on: "ubuntu-latest" | ||
|
||
environment: contract-testnet | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
@@ -24,26 +18,23 @@ jobs: | |
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'poetry' | ||
python-version: "3.12" | ||
cache: "poetry" | ||
|
||
- name: Install algokit | ||
run: pipx install algokit | ||
run: pipx install git+https://github.com/algorandfoundation/algokit-cli@feat/orchestration-linking | ||
|
||
- name: Bootstrap dependencies | ||
working-directory: ./projects/production_puya_react-contracts | ||
run: algokit bootstrap all | ||
run: algokit bootstrap all --project-name 'production_puya_react-contracts' | ||
|
||
- name: Configure git | ||
shell: bash | ||
working-directory: ./projects/production_puya_react-contracts | ||
run: | | ||
# set git user and email as test invoke git | ||
git config --global user.email "[email protected]" && git config --global user.name "github-actions" | ||
- name: Deploy to testnet | ||
working-directory: ./projects/production_puya_react-contracts | ||
run: algokit deploy testnet | ||
run: algokit deploy testnet --project-name 'production_puya_react-contracts' | ||
env: | ||
# This is the account that becomes the creator of the contract | ||
DEPLOYER_MNEMONIC: ${{ secrets.DEPLOYER_MNEMONIC }} | ||
|
59 changes: 59 additions & 0 deletions
59
examples/production_puya_react/.github/workflows/production-puya-react-contracts-ci.yaml
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Validate production_puya_react-contracts | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
validate: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "poetry" | ||
|
||
- name: Install algokit | ||
run: pipx install git+https://github.com/algorandfoundation/algokit-cli@feat/orchestration-linking | ||
|
||
- name: Start LocalNet | ||
run: algokit localnet start | ||
|
||
- name: Bootstrap dependencies | ||
run: algokit bootstrap all --project-name 'production_puya_react-contracts' | ||
|
||
- name: Configure git | ||
shell: bash | ||
run: | | ||
# set git user and email as test invoke git | ||
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_puya_react-contracts' | ||
|
||
- name: Lint and format python dependencies | ||
run: algokit project run lint --project-name 'production_puya_react-contracts' | ||
|
||
- name: Run tests | ||
shell: bash | ||
run: | | ||
set -o pipefail | ||
algokit project run test --project-name 'production_puya_react-contracts' | ||
- name: Build smart contracts | ||
run: algokit project run build --project-name 'production_puya_react-contracts' | ||
|
||
- name: Scan TEAL files for issues | ||
run: algokit project run audit-teal --project-name 'production_puya_react-contracts' | ||
|
||
- name: Check output stability of the smart contracts | ||
run: algokit project run ci-teal-diff --project-name 'production_puya_react-contracts' | ||
|
||
- name: Run deployer against LocalNet | ||
run: algokit project deploy localnet --project-name 'production_puya_react-contracts' |
39 changes: 39 additions & 0 deletions
39
examples/production_puya_react/.github/workflows/production-puya-react-frontend-cd.yaml
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release production_puya_react-frontend | ||
|
||
on: | ||
workflow_call: | ||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
jobs: | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Netlify | ||
environment: frontend-prod | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install algokit | ||
run: pipx install git+https://github.com/algorandfoundation/algokit-cli@feat/orchestration-linking | ||
|
||
- name: Bootstrap dependencies | ||
run: algokit bootstrap all --project-name 'production_puya_react-frontend' | ||
|
||
- name: Publish to Netlify | ||
env: | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
run: | | ||
npm install --global netlify-cli@latest | ||
netlify login | ||
netlify deploy --build --prod | ||
47 changes: 47 additions & 0 deletions
47
examples/production_puya_react/.github/workflows/production-puya-react-frontend-ci.yaml
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Validate production_puya_react-frontend | ||
|
||
on: | ||
|
||
workflow_call: | ||
|
||
|
||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "poetry" | ||
|
||
- name: Install algokit | ||
run: pipx install git+https://github.com/algorandfoundation/algokit-cli@feat/orchestration-linking | ||
|
||
- name: Install dependencies | ||
run: algokit bootstrap all --project-name 'production_puya_react-frontend' | ||
|
||
|
||
- name: Run linters | ||
run: algokit project run lint --project-name 'production_puya_react-frontend' | ||
|
||
|
||
- name: Run unit tests | ||
run: algokit project run test --project-name 'production_puya_react-frontend' | ||
|
||
|
||
- name: Build | ||
run: algokit project run build --project-name 'production_puya_react-frontend' |
Oops, something went wrong.