FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
feast/.github/workflows/java_master_only.yml at master · HalasNet/feast · GitHub
HalasNet
/
feast
Public
forked from
feast-dev/feast
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
feast
/
.github
/
workflows
/
java_master_only.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
121 lines (116 loc) · 3.74 KB
Breadcrumbs
feast
/
.github
/
workflows
/
java_master_only.yml
Copy path
File metadata and controls
121 lines (116 loc) · 3.74 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name
:
java-integration-tests-and-build
on
:
push
:
branches
:
-
master
tags
:
-
'
v*.*.*
'
jobs
:
build-docker-images
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
component
:
[feature-server-java]
env
:
MAVEN_CACHE
:
gs://feast-templocation-kf-feast/.m2.2020-08-19.tar
REGISTRY
:
gcr.io/kf-feast
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
'
true
'
-
uses
:
google-github-actions/setup-gcloud@v0
with
:
version
:
'
290.0.1
'
export_default_credentials
:
true
project_id
:
${{ secrets.GCP_PROJECT_ID }}
service_account_key
:
${{ secrets.GCP_SA_KEY }}
-
run
:
gcloud auth configure-docker --quiet
-
name
:
Get m2 cache
run
:
|
infra/scripts/download-maven-cache.sh \
--archive-uri ${MAVEN_CACHE} \
--output-dir .
-
name
:
Get version
run
:
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-
name
:
Build image
run
:
make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA}
-
name
:
Push image
run
:
make push-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA}
-
name
:
Push development Docker image
run
:
|
if [ ${GITHUB_REF#refs/*/} == "master" ]; then
docker tag ${REGISTRY}/${{ matrix.component }}:${GITHUB_SHA} ${REGISTRY}/${{ matrix.component }}:develop
docker push ${REGISTRY}/${{ matrix.component }}:develop
fi
lint-java
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
'
true
'
-
name
:
Lint java
run
:
make lint-java
unit-test-java
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
'
true
'
-
name
:
Set up JDK 11
uses
:
actions/setup-java@v1
with
:
java-version
:
'
11
'
java-package
:
jdk
architecture
:
x64
-
uses
:
actions/cache@v2
with
:
path
:
~/.m2/repository
key
:
${{ runner.os }}-ut-maven-${{ hashFiles('**/pom.xml') }}
restore-keys
:
|
${{ runner.os }}-ut-maven-
-
name
:
Test java
run
:
make test-java-with-coverage
-
uses
:
actions/upload-artifact@v2
with
:
name
:
java-coverage-report
path
:
${{ github.workspace }}/docs/coverage/java/target/site/jacoco-aggregate/
integration-test
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
'
true
'
-
name
:
Set up JDK 11
uses
:
actions/setup-java@v1
with
:
java-version
:
'
11
'
java-package
:
jdk
architecture
:
x64
-
uses
:
actions/setup-python@v2
with
:
python-version
:
'
3.7
'
architecture
:
'
x64
'
-
uses
:
actions/cache@v2
with
:
path
:
~/.m2/repository
key
:
${{ runner.os }}-it-maven-${{ hashFiles('**/pom.xml') }}
restore-keys
:
|
${{ runner.os }}-it-maven-
-
name
:
Set up gcloud SDK
uses
:
google-github-actions/setup-gcloud@v0
with
:
project_id
:
${{ secrets.GCP_PROJECT_ID }}
service_account_key
:
${{ secrets.GCP_SA_KEY }}
export_default_credentials
:
true
-
name
:
Use gcloud CLI
run
:
gcloud info
-
name
:
Set up AWS SDK
uses
:
aws-actions/configure-aws-credentials@v1
with
:
aws-access-key-id
:
${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key
:
${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region
:
us-west-2
-
name
:
Use AWS CLI
run
:
aws sts get-caller-identity
-
name
:
Run integration tests
run
:
make test-java-integration
Back
|
FazBrowse Home
|
New Git URL