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