Add build and publish steps #3
@ -61,8 +61,13 @@ jobs:
|
||||
git clone --quiet "$CLONE_URL_WITH_AUTH" .
|
||||
echo "${{ gitea.repository }} cloned successfully."
|
||||
|
||||
#Check frontend linting
|
||||
- name: Check frontend linting
|
||||
working-directory: ./frontend
|
||||
run: yarn lint
|
||||
|
||||
# Install frontend dependencies and run tests
|
||||
- name: Install frontend dependencies and run tests
|
||||
- name: Install dependencies, run tests and build frontend
|
||||
#uses: actions/cache@v3
|
||||
working-directory: ./frontend
|
||||
with:
|
||||
@ -77,16 +82,9 @@ jobs:
|
||||
yarn build
|
||||
#yarn test --watchAll=false --ci
|
||||
|
||||
#Check frontend linting
|
||||
- name: Check frontend linting
|
||||
working-directory: ./frontend
|
||||
run: yarn lint
|
||||
|
||||
backend-jobs:
|
||||
name: Set up Java for Backend Tests and Build
|
||||
runs-on: ubuntu-latest
|
||||
#container:
|
||||
#image: eclipse-temurin:21-jdk
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -153,6 +151,4 @@ jobs:
|
||||
working-directory: .
|
||||
run:
|
||||
mvn clean test -Dspring.profiles.active=test
|
||||
|
||||
- name: Done
|
||||
run: echo "Workflow successfully completed."
|
||||
echo "Backend test and build workflow successfully completed."
|
||||
|
||||
Reference in New Issue
Block a user