forked from kuldeeparora89/theia-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 923 Bytes
/
service-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
name: TheiaCloud Service CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main, osweek23 ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build TheiaCloud common
run: |
mvn clean install -f java/common/maven-conf --no-transfer-progress
mvn clean install -f java/common/org.eclipse.theia.cloud.common --no-transfer-progress
- name: Run TheiaCloud service tests
run: mvn clean verify -fae -f java/service/org.eclipse.theia.cloud.service --no-transfer-progress
docker:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -t theia-cloud-service:$(date +%s) -f dockerfiles/service/Dockerfile .