Add CODEOWNERS to be @embulk/elastic-maintainers #9
Workflow file for this run
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
name: Check | |
on: [ pull_request, push ] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
# push: always run. | |
# pull_request: run only when the PR is submitted from a forked repository, not within this repository. | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up OpenJDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 8 | |
distribution: "temurin" | |
cache: "gradle" | |
- 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 |