66 pull_request:
77 branches: [main]
88
9- env:
10- NODE_VERSION: 18
11- SOLANA_VERSION: {{ solanaVersion .full }}
12- {% if programFramework == = ' anchor' %}
13- ANCHOR_VERSION: {{ anchorVersion .full }}
14- {% endif %}
15-
169jobs:
1710 format_and_lint_programs:
1811 name: Format & Lint Programs
2518 uses: ./.github/actions/setup
2619 with:
2720 clippy: true
28- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
2921 rustfmt: true
3022
3123 - name: Format Programs
4436
4537 - name: Setup Environment
4638 uses: ./.github/actions/setup
47- with:
48- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
4939
5040 - name: Format Client JS
5141 run: pnpm clients:js:format
6656 uses: ./.github/actions/setup
6757 with:
6858 clippy: true
69- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
7059 rustfmt: true
7160
7261 - name: Format Client Rust
8877 uses: ./.github/actions/setup
8978 with:
9079 cargo-cache-key: cargo-programs
91- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
92- solana: {% raw %} ${{ env.SOLANA_VERSION }}{% endraw %}
80+ solana: true
9381{% if programFramework == = ' anchor' %}
94- anchor: {% raw %} ${{ env.ANCHOR_VERSION }} {% endraw %}
82+ anchor: true
9583{% endif %}
9684
9785 - name: Build Programs
@@ -123,10 +111,9 @@ jobs:
123111 with:
124112 cargo-cache-key: cargo-program-tests
125113 cargo-cache-fallback-key: cargo-programs
126- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
127- solana: {% raw %} ${{ env.SOLANA_VERSION }}{% endraw %}
114+ solana: true
128115{% if programFramework == = ' anchor' %}
129- anchor: {% raw %} ${{ env.ANCHOR_VERSION }} {% endraw %}
116+ anchor: true
130117{% endif %}
131118
132119 - name: Test Programs
@@ -145,10 +132,9 @@ jobs:
145132 with:
146133 cargo-cache-key: cargo-programs
147134 cargo-cache-local-key: cargo-local
148- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
149135{% if programFramework == = ' anchor' %}
150- solana: {% raw %} ${{ env.SOLANA_VERSION }} {% endraw %}
151- anchor: {% raw %} ${{ env.ANCHOR_VERSION }} {% endraw %}
136+ solana: true
137+ anchor: true
152138{% endif %}
153139
154140 - name: Generate IDLs
@@ -171,7 +157,6 @@ jobs:
171157 - name: Setup Environment
172158 uses: ./.github/actions/setup
173159 with:
174- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
175160 rustfmt: true
176161
177162 - name: Generate Clients
@@ -195,8 +180,7 @@ jobs:
195180 - name: Setup Environment
196181 uses: ./.github/actions/setup
197182 with:
198- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
199- solana: {% raw %} ${{ env.SOLANA_VERSION }}{% endraw %}
183+ solana: true
200184
201185 - name: Restore Program Builds
202186 uses: actions/cache/restore@v4
@@ -221,8 +205,7 @@ jobs:
221205 uses: ./.github/actions/setup
222206 with:
223207 cargo-cache-key: cargo-rust-client
224- node: {% raw %} ${{ env.NODE_VERSION }}{% endraw %}
225- solana: {% raw %} ${{ env.SOLANA_VERSION }}{% endraw %}
208+ solana: true
226209
227210 - name: Restore Program Builds
228211 uses: actions/cache/restore@v4
0 commit comments