Initial commit of GitHub Actions CI (#91)

* Initial commit of gh actions yaml

* Add dapr runtime install

* show dapr install version

* add java_sdk_wip branch for pr build
This commit is contained in:
Young Bu Park 2020-01-13 16:22:12 -08:00 committed by GitHub
parent 43bf1fde7c
commit b63fa48954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 44 additions and 0 deletions

44
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: Build
on:
push:
branches:
- master
- release-*
- java_sdk_wip
tags:
- v*
pull_request:
branches:
- master
- release-*
- java_sdk_wip
jobs:
build:
runs-on: ubuntu-latest
env:
JDK_VER: 13.0.x
DAPR_RUNTIME_VER: 0.3.0
steps:
- uses: actions/checkout@v1
- name: Set up ${{ env.JDK_VER }}
uses: actions/setup-java@v1
with:
java-version: ${{ env.JDK_VER }}
- name: Set up Dapr CLI
run: wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
- name: Initialize Dapr runtime as a standalone mode
run: |
sudo dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
echo "Showing dapr version..."
dapr --version
- name: Clean up files
run: mvn clean
- name: Build sdk
run: mvn compile
- name: Unit-test
run: mvn test
- name: Integration-test
run: mvn integration-test