1919 strategy :
2020 matrix :
2121 node-version : [20.x]
22- solana-version : [1.18.8 , stable]
22+ solana-version : [1.18.17 , stable]
2323 anchor-version : [0.30.1]
2424 steps :
2525 - uses : actions/checkout@v4
3535 - added|modified: '**/workflows/anchor.yml'
3636
3737 - 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
4040 with :
4141 anchor-version : ${{ matrix.anchor-version }}
4242 solana-cli-version : ${{ matrix.solana-version }}
9696 shell : bash
9797 # Skip Building all Programs if it's a PR to main branch
9898 - 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'
100100 run : |
101101 # Find all anchor projects and remove ignored projects
102102 declare -a ProjectDirs=($(find . -type d -name 'anchor' | sed 's|^\./||'| grep -v -f <(grep . .github/.ghaignore | grep -v '^$')))
@@ -137,8 +137,8 @@ jobs:
137137 strategy :
138138 matrix :
139139 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 ]
142142 steps :
143143 - uses : actions/checkout@v4
144144 - uses : dorny/paths-filter@v3
@@ -153,8 +153,8 @@ jobs:
153153 - added|modified: '**/workflows/anchor.yml'
154154 # Skip Installing and Displaying versions if theres no change in anchor programs or anchor action workflow file or isn't a schedule event
155155 - 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
158158 with :
159159 anchor-version : ${{ matrix.anchor-version }}
160160 solana-cli-version : ${{ matrix.solana-version }}
@@ -180,8 +180,7 @@ jobs:
180180 Testing $projectDir
181181 ********"
182182 cd $projectDir
183- pnpm install --frozen-lockfile
184- if anchor test; then
183+ if pnpm install --frozen-lockfile && anchor test; then
185184 echo "Tests succeeded for $projectDir."
186185 rm -rf target node_modules
187186 else
0 commit comments