Code cleanup #7
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- "*" | |
paths-ignore: | |
- ".gitignore" | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- ".gitignore" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: gradle | |
- name: Setup gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with gradle | |
run: ./gradlew build -x test | |
- name: Test with gradle | |
run: ./gradlew test | |
- uses: actions/upload-artifact@v3 | |
name: "Upload test report" | |
if: ${{ !cancelled() }} | |
with: | |
name: "Test Results" | |
path: build/reports/tests/test |