Skip to content

Commit

Permalink
Replace buildkite with github actions (#2004)
Browse files Browse the repository at this point in the history
Add github action CI jobs
  • Loading branch information
Quinn-With-Two-Ns authored Mar 11, 2024
1 parent dc094a1 commit a64b6e5
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 143 deletions.
35 changes: 0 additions & 35 deletions .buildkite/pipeline.yml

This file was deleted.

86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Continuous Integration
on:
pull_request:
push:
branches:
- master

jobs:
unit_test_edge:
name: Unit test with in-memory test service [Edge]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "19"
distribution: "temurin"

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3

- name: Run unit tests
run: ./gradlew --no-daemon test -x checkLicenseMain -x checkLicenses -x spotlessCheck -x spotlessApply -x spotlessJava -P edgeDepsTest

unit_test_jdk8:
name: Unit test with docker service [JDK8]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3


- name: Start containerized server and dependencies
run: |
docker compose \
-f ./docker/github/docker-compose.yaml \
up -d temporal
- name: Run unit tests
run: ./gradlew --no-daemon test -x checkLicenseMain -x checkLicenses -x spotlessCheck -x spotlessApply -x spotlessJava

copyright:
name: Copyright and code format
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3

- name: Run copyright and code format checks
run: ./gradlew --no-daemon checkLicenseMain checkLicenses spotlessCheck
7 changes: 0 additions & 7 deletions docker/buildkite/Dockerfile-JDK11

This file was deleted.

7 changes: 0 additions & 7 deletions docker/buildkite/Dockerfile-JDK19

This file was deleted.

7 changes: 0 additions & 7 deletions docker/buildkite/Dockerfile-JDK8

This file was deleted.

54 changes: 0 additions & 54 deletions docker/buildkite/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,36 +44,3 @@ services:
- elasticsearch
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig


unit-test-docker-jdk8:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile-JDK8
environment:
- "USER=unittest"
- "TEMPORAL_SERVICE_ADDRESS=temporal:7233"
- "USE_DOCKER_SERVICE=true"
depends_on:
- temporal
volumes:
- "../../:/temporal-java-client"

unit-test-test-service-edge:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile-JDK19
environment:
- "USER=unittest"
- "USE_DOCKER_SERVICE=false"
volumes:
- "../../:/temporal-java-client"

jdk11:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile-JDK11
environment:
- "USER=unittest"
volumes:
- "../../:/temporal-java-client"

0 comments on commit a64b6e5

Please sign in to comment.