diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e89a5dd..3f07a47 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -5,11 +5,13 @@ jobs: build: runs-on: ubuntu-latest # Runner ke paas sirf do label hain (ubuntu-latest, node-22) — Java ka koi nahi. - # Isliye job ko Maven ke apne image ke andar chalate hain. Build ka environment - # pinned ho jaata hai: jo yahan chala, wahi laptop pe chalega. + # Isliye job Maven ke apne image me chalta hai: build ka environment pinned. container: image: maven:3.9-eclipse-temurin-21 steps: - - uses: actions/checkout@v4 + # actions/checkout NAHI — wo ek JavaScript action hai aur use container ke andar + # `node` chahiye, jo maven image me nahi hai. git se clone karna seedha aur saaf hai. + - name: Code laao + run: git clone --depth 1 http://gitea:3000/abhishek/shopforge.git . - name: Build aur test run: mvn -B clean verify