test github action
This commit is contained in:
41
.github/workflows/build-push-docker.yml
vendored
41
.github/workflows/build-push-docker.yml
vendored
@@ -5,10 +5,10 @@ name: Maven Package
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the main branch
|
# Triggers the workflow on push or pull request events but only for the main branch
|
||||||
# push:
|
push:
|
||||||
## branches: [ main ]
|
branches: [ main ]
|
||||||
# tags: # tags 更新时触发 workflow
|
# tags: # tags 更新时触发 workflow
|
||||||
# - 'v*'
|
# - 'v*'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
@@ -20,22 +20,23 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build Maven
|
- name: Build Maven
|
||||||
run: mvn -B -DskipTests=true package --file pom.xml && \
|
run: |
|
||||||
ls && \
|
mvn -B -DskipTests=true package --file pom.xml
|
||||||
echo "--------------------------------------" && \
|
ls
|
||||||
pwd && \
|
echo "--------------------------------------"
|
||||||
echo "--------------------------------------" && \
|
pwd
|
||||||
ls /pro/cpuinfo
|
echo "--------------------------------------"
|
||||||
|
ls /pro/cpuinfo
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user