mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
Updated main.yml file
This commit is contained in:
parent
2d94490cfb
commit
598dd0bf55
2 changed files with 13 additions and 8 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -5,7 +5,7 @@
|
||||||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
name: Java CI with Gradle
|
name: Java Gradle Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
@ -13,17 +13,22 @@ on:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
my_first_job:
|
||||||
build:
|
name: Checkout
|
||||||
|
# This workflow contains a single job called "Checkout"
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
name: My First step
|
name: Checkout repository
|
||||||
|
|
||||||
|
# This job calls the build pipeline from local workflows directory
|
||||||
|
my_second_job:
|
||||||
|
needs: my_first_job
|
||||||
|
name: Build call
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# if: ${{ success() }}
|
||||||
- uses: ./.github/workflows/build.yml
|
- uses: ./.github/workflows/build.yml
|
||||||
name: Call build pipeline to build Java app
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue