Add building to lifecycle scripts #421
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: Preset CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Check for tabs in master_preset.xml | |
run: '! grep -n -P "\t" master_preset.xml' | |
- name: Install xmlstarlet | |
run: sudo apt-get -y install xmlstarlet librsvg2-bin | |
- name: Check with Gradle | |
run: ./gradlew check | |
- name: Run unit tests | |
run: ./gradlew test |