Skip to content

updated gitignore

updated gitignore #50

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./api
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{env.working-directory }}
- name: Build with Gradle
run: ./gradlew clean build
working-directory: ${{env.working-directory }}
test:
runs-on: ubuntu-latest
env:
working-directory: ./api
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Test with Gradle
run: ./gradlew test
working-directory: ${{env.working-directory }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tests
path: ./api/build/reports/tests/
checkstyle:
runs-on: ubuntu-latest
env:
working-directory: ./api
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{env.working-directory }}
- name: Checkstyle Main
run: ./gradlew checkstyleMain
working-directory: ${{env.working-directory }}
- name: Checkstyle Test
if: always()
run: ./gradlew checkstyleTest
working-directory: ${{env.working-directory }}
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: checkstyle
path: ./api/build/reports/checkstyle/
spotbugs:
runs-on: ubuntu-latest
env:
working-directory: ./api
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{env.working-directory }}
- name: Spotbugs Main
run: ./gradlew spotbugsMain
working-directory: ${{env.working-directory }}
- name: Spotbugs Test
if: always()
run: ./gradlew spotbugsTest
working-directory: ${{env.working-directory }}
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: spotbugs
path: ./api/build/reports/spotbugs/