mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
# This workflow will build a Java project with Maven
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
|
|
name: PIG 构建action
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
|
|
- name: mvn clean install
|
|
run: mvn clean install
|
|
|
|
- name: mvn spring-javaformat:validate
|
|
run: mvn spring-javaformat:validate
|
|
|
|
- name: success
|
|
if: ${{ success() }}
|
|
uses: fifsky/dingtalk-action@master
|
|
with:
|
|
url: ${{ secrets.DINGTALK_WEBHOOK}}
|
|
type: markdown
|
|
content: |
|
|
# 💯👨💻 Success 🎉🎉🎉
|
|
> Github Action: https://github.com/pig-mesh/pig success
|
|
> ^_^ from github action message
|
|
|
|
- name: failure
|
|
if: ${{ failure() }}
|
|
uses: fifsky/dingtalk-action@master
|
|
with:
|
|
url: ${{ secrets.DINGTALK_WEBHOOK}}
|
|
type: markdown
|
|
content: |
|
|
# 💤🤷♀️ failure 🙅♂️💣
|
|
> Github Action: https://github.com/pig-mesh/pig failure
|
|
> (⋟﹏⋞) from github action message
|