Skip to content

Commit

Permalink
Create pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
uzzu authored Apr 17, 2020
1 parent cc703e6 commit e588070
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: pull-request-build

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/[email protected]
with:
java-version: 1.8
architecture: x64
- name: Setup Ruby
uses: ruby/[email protected]
- name: Bundle install
run: |
bundle install
- name: Gradle clean
run: |
./gradlew clean
cd examples/basic
./gradlew clean
- name: Gradle build
run: |
./gradlew build
- name: Run Danger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec danger --verbose
- name: Upload build report
uses: actions/[email protected]
with:
name: build_reports
path: plugin/build/reports

0 comments on commit e588070

Please sign in to comment.