Skip to content

Commit e8a0413

Browse files
committed
Added separated action for validate master branch
1 parent 548d468 commit e8a0413

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/validate.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Validate YDB Examples
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Validate YDB Examples
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
java: [ '8', '11', '17']
16+
17+
env:
18+
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
24+
- name: Set up JDK
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: ${{ matrix.java }}
28+
distribution: 'temurin'
29+
cache: 'maven'
30+
31+
- name: Download dependencies
32+
run: mvn $MAVEN_ARGS dependency:go-offline
33+
34+
- name: Build with Maven
35+
run: mvn $MAVEN_ARGS package
36+

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ydb-platform/ydb-java-examples/blob/main/LICENSE)
2-
[![Build](https://img.shields.io/github/actions/workflow/status/ydb-platform/ydb-java-examples/build.yaml)](https://github.com/ydb-platform/ydb-java-examples/actions/workflows/build.yaml)
2+
[![Build](https://img.shields.io/github/actions/workflow/status/ydb-platform/ydb-java-examples/validate.yaml)](https://github.com/ydb-platform/ydb-java-examples/actions/workflows/validate.yaml)
33

44
## YDB Java SDK examples
55

0 commit comments

Comments
 (0)