-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (45 loc) · 1.36 KB
/
test.yaml
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
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
name: Test
on: [push, pull_request]
jobs:
Gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- run: gradle assemble --info
- run: gradle test --info
- run: java -jar build/pipeline.jar --inputText="🎉"
sbt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- run: sbt -v 'Test / compile' assembly
- run: sbt -v test
- run: java -jar build/pipeline.jar --inputText="🎉"
Maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- run: mvn -DskipTests test-compile package
- run: mvn test
- run: java -jar target/beam-java-starter-1-jar-with-dependencies.jar --inputText="🎉"