forked from embulk/embulk-output-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from embulk/use-git-hub-actions
Use git hub actions
- Loading branch information
Showing
2 changed files
with
57 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build and test | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Run elastisearch container | ||
run: docker-compose up -d | ||
|
||
- name: List containers | ||
run: docker-compose ps | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Testing | ||
run: ./gradlew check --console rich --info | ||
|
||
- name: Check building | ||
run: ./gradlew gem --console rich --info | ||
|
||
- name: JaCoCo test report | ||
if: success() | ||
run: ./gradlew jacocoTestReport | ||
|
||
- name: Pack reports | ||
if: always() | ||
run: zip -9 -r -q reports.zip ./build/reports | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: reports | ||
path: ./reports.zip | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: gem | ||
path: ./pkg/*.gem | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: jar | ||
path: ./build/libs/*.jar |
This file was deleted.
Oops, something went wrong.