-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.22 KB
/
ci.yml
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
name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container: opendistroforelasticsearch/security-maven:v1
steps:
- name: Checkout security-parent
uses: actions/checkout@v1
with:
repository: opendistro-for-elasticsearch/security-parent
ref: refs/heads/master
- name: Install security-parent
run: mvn clean install -DskipTests --file ../security-parent/pom.xml
- name: Checkout security
uses: actions/checkout@v1
with:
repository: opendistro-for-elasticsearch/security
ref: refs/heads/master
- name: Install security
run: mvn clean install -DskipTests --file ../security/pom.xml
- name: Checkout security-advanced-modules
uses: actions/checkout@v1
- name: Checkstyle
run: mvn checkstyle:checkstyle
- name: Test
run: mvn test
- name: Install
run: mvn clean install -DskipTests
- name: Package
run: mvn clean package -Padvanced -DskipTests --file ../security/pom.xml
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: artifacts
path: ../security/target/releases/