Merge pull request #94 from nvervelle/issue-41-option-to-download-opa #164
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: build | |
on: [push] | |
jobs: | |
build: | |
name: Build plugin | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11.x.x' | |
- name: Download opa | |
run: wget -O opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64 | |
- name: Install opa | |
run: sudo mv opa /usr/local/bin/ && sudo chmod +x /usr/local/bin/opa | |
- name: Build plugin | |
run: ./gradlew build jacocoTestReport | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: opa-gradle-plugin | |
path: build/libs | |
- uses: codecov/[email protected] | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./build/reports/jacoco/test/jacocoTestReport.xml | |
name: opa-gradle-plugin | |