Skip to content

Build and Test

Build and Test #379

Workflow file for this run

name: Build and Test
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 11, 13 ]
name: Build ktfmt on Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build ktfmt
run: mvn -B install --file pom.xml
- name: Build ktfmt_idea_plugin
run: |
pushd ktfmt_idea_plugin
./gradlew build
popd
- name: Build the Online Formatter
run: |
pushd online_formatter
./gradlew build
popd