CI: checkout action ki jagah git clone — maven image me node nahi hai
build / build (push) Successful in 30s
build / build (push) Successful in 30s
This commit is contained in:
@@ -5,11 +5,13 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Runner ke paas sirf do label hain (ubuntu-latest, node-22) — Java ka koi nahi.
|
# 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
|
# Isliye job Maven ke apne image me chalta hai: build ka environment pinned.
|
||||||
# pinned ho jaata hai: jo yahan chala, wahi laptop pe chalega.
|
|
||||||
container:
|
container:
|
||||||
image: maven:3.9-eclipse-temurin-21
|
image: maven:3.9-eclipse-temurin-21
|
||||||
steps:
|
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
|
- name: Build aur test
|
||||||
run: mvn -B clean verify
|
run: mvn -B clean verify
|
||||||
|
|||||||
Reference in New Issue
Block a user