Skip to content

The frontend/build directory must exist prior to the Maven build proc… #197

The frontend/build directory must exist prior to the Maven build proc…

The frontend/build directory must exist prior to the Maven build proc… #197

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
env:
NODE_OPTIONS: "--openssl-legacy-provider"
run: mvn -B package --file pom.xml -X
- name: Test
run: ls frontend/build
- name: Test 2
run: unzip -l ./frontend/target/frontend-1.0-SNAPSHOT.jar
- name: Test 3
run: pwd
- name: Test 4
run: find .
- name: Test 5
run: ls /home/runner/work/drasyl-network-explorer/drasyl-network-explorer/frontend/build
- name: Publish artifact
uses: actions/upload-artifact@v3
with:
name: Java
path: ./backend/target/drasyl-network-explorer-spring-boot.jar