Skip to content

Commit 4f2c85e

Browse files
committed
Add verify workflow for validating pull request on-demand
1 parent 8edd8d3 commit 4f2c85e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/verify.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Verify
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
clickhouse:
7+
description: "ClickHouse Version"
8+
required: true
9+
default: "latest"
10+
java:
11+
description: "Java Version"
12+
required: true
13+
default: "8"
14+
pr:
15+
description: "Pull Request#"
16+
required: false
17+
18+
jobs:
19+
verify:
20+
runs-on: ubuntu-latest
21+
name: Verify pull request \#${{ github.event.inputs.pr }} using JDK ${{ github.event.inputs.java }} against ClickHouse ${{ github.event.inputs.clickhouse }}
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@v2
25+
if: github.event.inputs.pr == ''
26+
- name: Check out pull request \#${{ github.event.inputs.pr }}
27+
uses: actions/checkout@v2
28+
if: github.event.inputs.pr != ''
29+
with:
30+
ref: refs/remotes/pull/${{ github.event.inputs.pr }}/merge
31+
- name: Set up JDK ${{ github.event.inputs.java }}
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: ${{ github.event.inputs.java }}
35+
- name: Build with Maven
36+
run: mvn --batch-mode --update-snapshots -DclickhouseVersion=${{ matrix.clickhouse }} verify

0 commit comments

Comments
 (0)