Merge pull request #68 from shlomodaari/fix-hyphen-prometheus #165
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
name: Build Plugin | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: run tests | |
run: | | |
./gradlew check aggregatedJacocoReport | |
./gradlew coveralls | |
curl -F 'json_file=@build/coveralls/report.json' 'https://coveralls.io/api/v1/jobs' | |
- name: build | |
run: ./gradlew releaseBundle | |
- name: archive build artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: build/distributions |