Skip to content

Commit

Permalink
Merge pull request #59 from embulk/use-git-hub-actions
Browse files Browse the repository at this point in the history
Use git hub actions
  • Loading branch information
dmikurube authored Jun 17, 2021
2 parents 9e705b9 + 2cfb5a5 commit 0cb95fb
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 15 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
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
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 0cb95fb

Please sign in to comment.