Adds interruptible flag to CompileOptions #3341
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: "Build and Report Generation" | |
on: | |
push: | |
pull_request: | |
branches: | |
# Branches from forks have the form 'user:branch-name' so we only run | |
# this job on pull_request events for branches that look like fork | |
# branches. Without this we would end up running this job twice for non | |
# forked PRs, once for the push and then once for opening the PR. | |
# Taken from https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10 | |
- '**:**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [8, 9, 10, 11] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Java ${{ matrix.java }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Build and test | |
run: ./gradlew build | |
report-generation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Java 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Generate test coverage report | |
run: ./gradlew build jacocoTestReport | |
# Upload coverage for CLI, LANG, PTS, TEST_SCRIPT, and EXAMPLES | |
- name: Upload CLI coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: cli/build/reports | |
flags: CLI | |
- name: Upload LANG coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: lang/build/reports | |
flags: LANG | |
- name: Upload PTS coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: pts/build/reports | |
flags: PTS | |
- name: Upload TEST_SCRIPT coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: testscript/build/reports | |
flags: TEST_SCRIPT | |
- name: Upload EXAMPLES coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: examples/build/reports | |
flags: EXAMPLES |