19
19
strategy :
20
20
matrix :
21
21
node-version : [20.x]
22
- solana-version : [1.18.8 , stable]
22
+ solana-version : [1.18.17 , stable]
23
23
anchor-version : [0.30.1]
24
24
steps :
25
25
- uses : actions/checkout@v4
35
35
- added|modified: '**/workflows/anchor.yml'
36
36
37
37
- name : Setup Anchor
38
- if : steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule'
39
- uses : heyAyushh/setup-anchor@v3.10
38
+ if : steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule' || github.event_name == 'push'
39
+ uses : heyAyushh/setup-anchor@v3.12
40
40
with :
41
41
anchor-version : ${{ matrix.anchor-version }}
42
42
solana-cli-version : ${{ matrix.solana-version }}
96
96
shell : bash
97
97
# Skip Building all Programs if it's a PR to main branch
98
98
- name : Build All Anchor programs
99
- if : github.event_name == 'schedule' || steps.changes.outputs.anchor_action == 'true'
99
+ if : github.event_name == 'schedule' || github.event_name == 'push' || steps.changes.outputs.anchor_action == 'true'
100
100
run : |
101
101
# Find all anchor projects and remove ignored projects
102
102
declare -a ProjectDirs=($(find . -type d -name 'anchor' | sed 's|^\./||'| grep -v -f <(grep . .github/.ghaignore | grep -v '^$')))
@@ -137,8 +137,8 @@ jobs:
137
137
strategy :
138
138
matrix :
139
139
node-version : [20.x]
140
- solana-version : [1.18.8 , stable]
141
- anchor-version : [0.30.0 ]
140
+ solana-version : [1.18.17 , stable]
141
+ anchor-version : [0.30.1 ]
142
142
steps :
143
143
- uses : actions/checkout@v4
144
144
- uses : dorny/paths-filter@v3
@@ -153,8 +153,8 @@ jobs:
153
153
- added|modified: '**/workflows/anchor.yml'
154
154
# Skip Installing and Displaying versions if theres no change in anchor programs or anchor action workflow file or isn't a schedule event
155
155
- name : Setup Anchor
156
- if : steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule'
157
- uses : heyAyushh/setup-anchor@v3.10
156
+ if : steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule' || github.event_name == 'push'
157
+ uses : heyAyushh/setup-anchor@v3.12
158
158
with :
159
159
anchor-version : ${{ matrix.anchor-version }}
160
160
solana-cli-version : ${{ matrix.solana-version }}
@@ -180,8 +180,7 @@ jobs:
180
180
Testing $projectDir
181
181
********"
182
182
cd $projectDir
183
- pnpm install --frozen-lockfile
184
- if anchor test; then
183
+ if pnpm install --frozen-lockfile && anchor test; then
185
184
echo "Tests succeeded for $projectDir."
186
185
rm -rf target node_modules
187
186
else
0 commit comments