Skip to content

Commit

Permalink
Run more workflows for branch_9x (#2543)
Browse files Browse the repository at this point in the history
(cherry picked from commit c25e4a1)
  • Loading branch information
janhoy committed Jun 29, 2024
1 parent b326f97 commit ef36c19
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/bin-solr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- 'main'
- 'branch_9x'
paths:
- '.github/workflows/bin-solr-test.yml'
- 'solr/bin/**'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- 'main'
- 'branch_9x'
paths:
- '.github/workflows/docker-test.yml'
- 'solr/bin/**'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gradle-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Gradle Precommit
on:
pull_request:
branches:
- '**'
- 'main'
- 'branch_9x'

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/solrj-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- 'main'
- 'branch_9x'
paths:
- '.github/workflows/solrj-test.yml'
- 'solr/solrj/**'
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/tests-via-crave.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Solr Tests

on:
pull_request:
branches:
- 'main'
- 'branch_9x'

jobs:
test:
name: Run Solr Tests using Crave.io resources

runs-on: self-hosted

steps:
- name: Destroy previous clone
run: crave clone destroy -y /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER} || echo "Clone did not exist"
continue-on-error: true
- name: Crave clone sources
run: crave clone create --projectID 39 /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
- name: Checkout the correct branch
run: |
git -C /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER} fetch origin ${GITHUB_REF}:${GITHUB_REF}
git -C /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER} checkout ${GITHUB_REF}
- name: Initialize, build, test
run: |
cd /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
crave run --clean
- name: Delete Clone
run: crave clone destroy -y /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}

0 comments on commit ef36c19

Please sign in to comment.