feature: Update Validator and ToBeValidated #108
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: PR Review | |
on: | |
pull_request: | |
branches: [ "main" ] | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- edited | |
permissions: | |
contents: read | |
statuses: write | |
jobs: | |
build: | |
name: Build Java Modules | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
module: [ 'sep490-common', 'sep490-idp' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'oracle' | |
java-version: '21' | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
timeout-minutes: 15 | |
run: | | |
./gradlew build --scan | |
working-directory: ${{ matrix.module }} | |
build-frontend: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Cache npm | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm ci | |
timeout-minutes: 5 | |
working-directory: sep490-frontend | |
- run: npm run build | |
timeout-minutes: 5 | |
working-directory: sep490-frontend |