Repository navigation
66 lines (51 loc) · 1.38 KB
/
Copy pathbuild.yaml
File metadata and controls
66 lines (51 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build YDB Java SDK
on:
push:
branches:
- master
- develop
- release*
pull_request:
type: [opened, reopened, edited, synchronize]
permissions:
contents: read
jobs:
build:
name: Build YDB Java SDK
runs-on: ubuntu-26.04
strategy:
matrix:
java: [ '8', '11', '17', '21']
env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true
steps:
- uses: actions/checkout@v7
- name: Set up JDK
uses: actions/setup-java@v6
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: mvn $MAVEN_ARGS verify
coverage:
if: github.repository == 'ydb-platform/ydb-java-sdk'
name: Coverage YDB Java SDK
runs-on: ubuntu-26.04
needs: build
env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true
steps:
- uses: actions/checkout@v7
- name: Set up JDK
uses: actions/setup-java@v6
with:
java-version: 8
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: mvn $MAVEN_ARGS test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}