#61 Fix Gradle GitHub Workflow #75
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: Gradle | |
on: | |
push: | |
branches: | |
- main | |
- lab-[1234] | |
pull_request: | |
branches: | |
- main | |
- lab-[1234] | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: ./backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lint OpenAPI Specifications | |
uses: stoplightio/spectral-action@latest | |
with: | |
file_glob: 'backend/*/src/main/resources/static/openapi/api.yml' | |
spectral_ruleset: backend/config/.spectral.yaml | |
- name: Setup up JDK 23 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '23' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Generate Key Pair | |
run: bash config/crypto/keys.bash generate test | |
- name: Build | |
run: gradle build |