Skip to content

Commit 7d1688f

Browse files
author
CssTechnology
authored
Update main.yml
1 parent e7d5a52 commit 7d1688f

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,35 @@ name: workflow of java springboot
22

33
on:
44
push:
5-
branches:
6-
- dev
5+
branches:
6+
- dev
77

88
jobs:
99
build:
10-
runs-on: ubuntu latest
10+
runs-on: ubuntu-latest
1111

12-
steps:
13-
- name: Checkout Code
14-
uses: actions/checkout@v2
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v2
1515

16-
- name: Set Up JDK 17
17-
uses: actions/setup-java@v2
18-
with:
19-
java-version: '17'
20-
distribution: 'temurin'
16+
- name: Set Up JDK 17
17+
uses: actions/setup-java@v2
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
2121

22-
- name: Cache Maven Dependencies
23-
uses: actions/cache@v3
24-
with:
22+
- name: Cache Maven Dependencies
23+
uses: actions/cache@v3
24+
with:
2525
path: ~/.m2/repository
2626
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2727
restore-keys: |
2828
${{ runner.os }}-maven-
2929
30-
- name: Get Maven Build Version
31-
id: get-verison
32-
run: |
33-
echo "version=$(mvn help:evlatue -Dexpression=project.version -q -DforceStdout | tail -1)" >> $GITHUB_OUTPUT
34-
Shell: bash
30+
- name: Get Maven Build Version
31+
id: get-version
32+
run: |
33+
echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | tail -1)" >> $GITHUB_OUTPUT
3534
36-
- name: Build with Maven
37-
run: mvn clean package # / mvn build , mvn test path- /. src/tests/com/optum/optumlabs/AuthBridge/AuthBridgeControllerTest.java
35+
- name: Build with Maven
36+
run: mvn clean package

0 commit comments

Comments
 (0)