From 7f8a01dc07411da1223540ff5cb4ae4c7cd1b27f Mon Sep 17 00:00:00 2001 From: Altynbek Orumbayev Date: Thu, 12 Dec 2024 11:55:08 +0100 Subject: [PATCH] fix: templatize project name to exclude it in standalone instances --- .../.github/workflows/production-react-netlify-cd.yaml | 2 +- .../.github/workflows/production-react-netlify-ci.yaml | 8 ++++---- .../.github/workflows/production-react-vercel-cd.yaml | 2 +- .../.github/workflows/production-react-vercel-ci.yaml | 8 ++++---- .../.github/workflows/production-react-cd.yaml | 2 +- .../.github/workflows/production-react-ci.yaml | 8 ++++---- ...project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja | 2 +- ...ncludes', 'project_name_kebab.jinja') %}-ci.yaml.jinja | 8 ++++---- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml b/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml index e4dc0fb..03febbe 100644 --- a/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml +++ b/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml @@ -40,7 +40,7 @@ jobs: run: pipx install algokit - name: Bootstrap dependencies - run: algokit project bootstrap all --project-name 'production_react_netlify' + run: algokit project bootstrap all - name: Publish to Netlify env: diff --git a/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-ci.yaml b/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-ci.yaml index 2c7654e..f067dd1 100644 --- a/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-ci.yaml +++ b/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-ci.yaml @@ -33,16 +33,16 @@ jobs: run: pipx install algokit - name: Install dependencies - run: algokit project bootstrap all --project-name 'production_react_netlify' + run: algokit project bootstrap all - name: Run linters - run: algokit project run lint --project-name 'production_react_netlify' + run: algokit project run lint - name: Run unit tests - run: algokit project run test --project-name 'production_react_netlify' + run: algokit project run test - name: Build - run: algokit project run build --project-name 'production_react_netlify' + run: algokit project run build diff --git a/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml b/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml index 9b03c0e..7ea004d 100644 --- a/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml +++ b/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml @@ -40,7 +40,7 @@ jobs: run: pipx install algokit - name: Bootstrap dependencies - run: algokit project bootstrap all --project-name 'production_react_vercel' + run: algokit project bootstrap all - name: Publish to Vercel env: diff --git a/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-ci.yaml b/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-ci.yaml index 2f133c2..6840a65 100644 --- a/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-ci.yaml +++ b/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-ci.yaml @@ -33,16 +33,16 @@ jobs: run: pipx install algokit - name: Install dependencies - run: algokit project bootstrap all --project-name 'production_react_vercel' + run: algokit project bootstrap all - name: Run linters - run: algokit project run lint --project-name 'production_react_vercel' + run: algokit project run lint - name: Run unit tests - run: algokit project run test --project-name 'production_react_vercel' + run: algokit project run test - name: Build - run: algokit project run build --project-name 'production_react_vercel' + run: algokit project run build diff --git a/examples/production_react/.github/workflows/production-react-cd.yaml b/examples/production_react/.github/workflows/production-react-cd.yaml index 2501b76..8c5169a 100644 --- a/examples/production_react/.github/workflows/production-react-cd.yaml +++ b/examples/production_react/.github/workflows/production-react-cd.yaml @@ -40,5 +40,5 @@ jobs: run: pipx install algokit - name: Bootstrap dependencies - run: algokit project bootstrap all --project-name 'production_react' + run: algokit project bootstrap all \ No newline at end of file diff --git a/examples/production_react/.github/workflows/production-react-ci.yaml b/examples/production_react/.github/workflows/production-react-ci.yaml index 62ef5f8..34ca5f1 100644 --- a/examples/production_react/.github/workflows/production-react-ci.yaml +++ b/examples/production_react/.github/workflows/production-react-ci.yaml @@ -33,16 +33,16 @@ jobs: run: pipx install algokit - name: Install dependencies - run: algokit project bootstrap all --project-name 'production_react' + run: algokit project bootstrap all - name: Run linters - run: algokit project run lint --project-name 'production_react' + run: algokit project run lint - name: Run unit tests - run: algokit project run test --project-name 'production_react' + run: algokit project run test - name: Build - run: algokit project run build --project-name 'production_react' + run: algokit project run build diff --git a/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja b/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja index 6822642..5d38c6a 100644 --- a/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja +++ b/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja @@ -45,7 +45,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 %} {% if cloud_provider == 'vercel' %} - name: Publish to Vercel env: diff --git a/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% include pathjoin('includes', 'project_name_kebab.jinja') %}-ci.yaml.jinja b/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% include pathjoin('includes', 'project_name_kebab.jinja') %}-ci.yaml.jinja index 7118cc2..0baaafe 100644 --- a/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% include pathjoin('includes', 'project_name_kebab.jinja') %}-ci.yaml.jinja +++ b/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% include pathjoin('includes', 'project_name_kebab.jinja') %}-ci.yaml.jinja @@ -35,16 +35,16 @@ jobs: run: pipx install algokit - name: Install dependencies - run: algokit project bootstrap all --project-name '{{ project_name }}' + run: algokit project bootstrap all {% if use_workspace %}--project-name '{{ project_name }}'{% endif %} {% if use_eslint_prettier %} - name: Run linters - run: algokit project run lint --project-name '{{ project_name }}' + run: algokit project run lint {% if use_workspace %}--project-name '{{ project_name }}'{% endif %} {% endif %} {% if use_jest %} - name: Run unit tests - run: algokit project run test --project-name '{{ project_name }}' + run: algokit project run test {% if use_workspace %}--project-name '{{ project_name }}'{% endif %} {% endif %} - name: Build - run: algokit project run build --project-name '{{ project_name }}' + run: algokit project run build {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}