Skip to content

Commit a64b6e5

Browse files
Replace buildkite with github actions (#2004)
Add github action CI jobs
1 parent dc094a1 commit a64b6e5

File tree

8 files changed

+86
-143
lines changed

8 files changed

+86
-143
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Continuous Integration
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
unit_test_edge:
10+
name: Unit test with in-memory test service [Edge]
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
submodules: recursive
19+
ref: ${{ github.event.pull_request.head.sha }}
20+
21+
- name: Set up Java
22+
uses: actions/setup-java@v3
23+
with:
24+
java-version: "19"
25+
distribution: "temurin"
26+
27+
- name: Set up Gradle
28+
uses: gradle/actions/setup-gradle@v3
29+
30+
- name: Run unit tests
31+
run: ./gradlew --no-daemon test -x checkLicenseMain -x checkLicenses -x spotlessCheck -x spotlessApply -x spotlessJava -P edgeDepsTest
32+
33+
unit_test_jdk8:
34+
name: Unit test with docker service [JDK8]
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 30
37+
steps:
38+
- name: Checkout repo
39+
uses: actions/checkout@v3
40+
with:
41+
fetch-depth: 0
42+
submodules: recursive
43+
ref: ${{ github.event.pull_request.head.sha }}
44+
45+
- name: Set up Java
46+
uses: actions/setup-java@v3
47+
with:
48+
java-version: "11"
49+
distribution: "temurin"
50+
51+
- name: Set up Gradle
52+
uses: gradle/actions/setup-gradle@v3
53+
54+
55+
- name: Start containerized server and dependencies
56+
run: |
57+
docker compose \
58+
-f ./docker/github/docker-compose.yaml \
59+
up -d temporal
60+
61+
- name: Run unit tests
62+
run: ./gradlew --no-daemon test -x checkLicenseMain -x checkLicenses -x spotlessCheck -x spotlessApply -x spotlessJava
63+
64+
copyright:
65+
name: Copyright and code format
66+
runs-on: ubuntu-latest
67+
timeout-minutes: 20
68+
steps:
69+
- name: Checkout repo
70+
uses: actions/checkout@v3
71+
with:
72+
fetch-depth: 0
73+
submodules: recursive
74+
ref: ${{ github.event.pull_request.head.sha }}
75+
76+
- name: Set up Java
77+
uses: actions/setup-java@v3
78+
with:
79+
java-version: "11"
80+
distribution: "temurin"
81+
82+
- name: Set up Gradle
83+
uses: gradle/actions/setup-gradle@v3
84+
85+
- name: Run copyright and code format checks
86+
run: ./gradlew --no-daemon checkLicenseMain checkLicenses spotlessCheck

docker/buildkite/Dockerfile-JDK11

Lines changed: 0 additions & 7 deletions
This file was deleted.

docker/buildkite/Dockerfile-JDK19

Lines changed: 0 additions & 7 deletions
This file was deleted.

docker/buildkite/Dockerfile-JDK8

Lines changed: 0 additions & 7 deletions
This file was deleted.

docker/buildkite/README.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

docker/buildkite/docker-compose.yaml renamed to docker/github/docker-compose.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -44,36 +44,3 @@ services:
4444
- elasticsearch
4545
volumes:
4646
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
47-
48-
49-
unit-test-docker-jdk8:
50-
build:
51-
context: ../../
52-
dockerfile: ./docker/buildkite/Dockerfile-JDK8
53-
environment:
54-
- "USER=unittest"
55-
- "TEMPORAL_SERVICE_ADDRESS=temporal:7233"
56-
- "USE_DOCKER_SERVICE=true"
57-
depends_on:
58-
- temporal
59-
volumes:
60-
- "../../:/temporal-java-client"
61-
62-
unit-test-test-service-edge:
63-
build:
64-
context: ../../
65-
dockerfile: ./docker/buildkite/Dockerfile-JDK19
66-
environment:
67-
- "USER=unittest"
68-
- "USE_DOCKER_SERVICE=false"
69-
volumes:
70-
- "../../:/temporal-java-client"
71-
72-
jdk11:
73-
build:
74-
context: ../../
75-
dockerfile: ./docker/buildkite/Dockerfile-JDK11
76-
environment:
77-
- "USER=unittest"
78-
volumes:
79-
- "../../:/temporal-java-client"

0 commit comments

Comments
 (0)