name: Build and check

on: [pull-request, push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build plugin
      run: ./plugin/gradlew -p ./plugin build --no-daemon
    - name: Check plugin codestyle
      run: ./plugin/gradlew -p ./plugin ktlintCheck --no-daemon

name: Build and check

on: [pull_request, push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build plugin
      run: ./plugin/gradlew -p ./plugin build --no-daemon
    - name: Check plugin codestyle
      run: ./plugin/gradlew -p ./plugin ktlintCheck --no-daemon

Fix github action event name.
Fix github action event name.
