Skip to content

feat: add reverse engg with example project #6

feat: add reverse engg with example project

feat: add reverse engg with example project #6

name: Scaffold code from template
on:
pull_request:
branches:
- main
paths:
- '{{cookiecutter.app_name}}/**'
workflow_dispatch:
jobs:
scaffold:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Install cookiecutter
run: pip install cookiecutter
- name: Test cookiecutter
run: cookiecutter --config-file=test-config.yml --no-input .
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- name: Build with Maven
run: |
cd cart-service
mvn git-code-format:format-code
mvn clean install -ntp