浏览代码

Fix spacing

Loris Leiva 1 年之前
父节点
当前提交
15f8240117
共有 2 个文件被更改,包括 18 次插入18 次删除
  1. 4 4
      template/base/.github/actions/setup/action.yml.njk
  2. 14 14
      template/base/.github/workflows/main.yml.njk

+ 4 - 4
template/base/.github/actions/setup/action.yml.njk

@@ -1,10 +1,10 @@
 name: Setup environment
 
 inputs:
-  {% if programFramework === 'anchor' %}
+{% if programFramework === 'anchor' %}
   anchor:
     description: The Anchor version to install
-  {% ending %}
+{% endif %}
   cache:
     description: Enable caching
     default: "true"
@@ -33,11 +33,11 @@ runs:
       with:
         version: {% raw %}${{ inputs.solana }}{% endraw %}
         cache: {% raw %}${{ inputs.cache }}{% endraw %}
-    {% if programFramework === 'anchor' %}
+ {% if programFramework === 'anchor' %}
     - name: Install Anchor
       if: {% raw %}${{ inputs.anchor != '' }}{% endraw %}
       uses: metaplex-foundation/actions/install-anchor-cli@v1
       with:
         version: {% raw %}${{ inputs.anchor }}{% endraw %}
         cache: {% raw %}${{ inputs.cache }}{% endraw %}
-    {% endif %}
+{% endif %}

+ 14 - 14
template/base/.github/workflows/main.yml.njk

@@ -9,9 +9,9 @@ on:
 env:
   NODE_VERSION: 18
   SOLANA_VERSION: 1.18.12
-  {% if programFramework === 'anchor' %}
+{% if programFramework === 'anchor' %}
   ANCHOR_VERSION: 0.30.0
-  {% endif %}
+{% endif %}
   CARGO_CACHE: |
     ~/.cargo/bin/
     ~/.cargo/registry/index/
@@ -31,9 +31,9 @@ jobs:
         with:
           node: {% raw %}${{ env.NODE_VERSION }}{% endraw %}
           solana: {% raw %}${{ env.SOLANA_VERSION }}{% endraw %}
-          {% if programFramework === 'anchor' %}
+{% if programFramework === 'anchor' %}
           anchor: {% raw %}${{ env.ANCHOR_VERSION }}{% endraw %}
-          {% endif %}
+{% endif %}
       - name: Cache cargo dependencies
         uses: actions/cache@v4
         with:
@@ -65,9 +65,9 @@ jobs:
         with:
           node: {% raw %}${{ env.NODE_VERSION }}{% endraw %}
           solana: {% raw %}${{ env.SOLANA_VERSION }}{% endraw %}
-          {% if programFramework === 'anchor' %}
+{% if programFramework === 'anchor' %}
           anchor: {% raw %}${{ env.ANCHOR_VERSION }}{% endraw %}
-          {% endif %}
+{% endif %}
       - name: Cache test cargo dependencies
         uses: actions/cache@v4
         with:
@@ -92,9 +92,9 @@ jobs:
         with:
           node: {% raw %}${{ env.NODE_VERSION }}{% endraw %}
           solana: {% raw %}${{ env.SOLANA_VERSION }}{% endraw %}
-          {% if programFramework === 'anchor' %}
+{% if programFramework === 'anchor' %}
           anchor: {% raw %}${{ env.ANCHOR_VERSION }}{% endraw %}
-          {% endif %}
+{% endif %}
       - name: Cache cargo dependencies
         uses: actions/cache@v4
         with:
@@ -116,7 +116,7 @@ jobs:
       - name: Ensure working directory is clean
         run: test -z "$(git status --porcelain)"
 
-  {% if clients.length > 0 %}
+{% if clients.length > 0 %}
   generate_clients:
     name: Check client generation
     needs: build_programs
@@ -133,9 +133,9 @@ jobs:
         run: pnpm generate:clients
       - name: Ensure working directory is clean
         run: test -z "$(git status --porcelain)"
-  {% endif %}
+{% endif %}
 
-  {% if jsClient %}
+{% if jsClient %}
   test_js:
     name: Test JS client
     needs: build_programs
@@ -169,9 +169,9 @@ jobs:
           node: {% raw %}${{ env.NODE_VERSION }}{% endraw %}
       - name: Lint JS client
         run: pnpm clients:js:lint
-  {% endif %}
+{% endif %}
 
-  {% if rustClient %}
+{% if rustClient %}
   test_rust:
     name: Test Rust client
     needs: build_programs
@@ -211,4 +211,4 @@ jobs:
           node: {% raw %}${{ env.NODE_VERSION }}{% endraw %}
       - name: Lint Rust client
         run: pnpm clients:rust:lint
-  {% endif %}
+{% endif %}