• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Build and Test
2
3on:
4  push:
5    paths-ignore:
6      - '**.md'
7  pull_request:
8    paths-ignore:
9      - '**.md'
10
11jobs:
12  build:
13    runs-on: ubuntu-latest
14    strategy:
15      matrix:
16        # test against latest update of each major Java version, as well as specific updates of LTS versions:
17        java: [ 11, 13 ]
18    name: Build ktfmt on Java ${{ matrix.java }}
19    steps:
20    - uses: actions/checkout@v1
21      with:
22        submodules: recursive
23    - name: Set up JDK ${{ matrix.java }}
24      uses: actions/setup-java@v1
25      with:
26        java-version: ${{ matrix.java }}
27    - name: Build ktfmt
28      run: mvn -B install --file pom.xml
29    - name: Build ktfmt_idea_plugin
30      run: |
31        pushd ktfmt_idea_plugin
32        ./gradlew build
33        popd
34    - name: Build the Online Formatter
35      run: |
36        pushd online_formatter
37        ./gradlew build
38        popd
39