Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notification for workflow #28864

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 17 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,7 @@ name: CI

on:
push:
branches: [ dev ]
paths:
- '.github/workflows/ci.yml'
- '**/pom.xml'
- '**/src/main/**'
- '**/src/test/**'
- '!distribution/**'
- 'test/it/**'
- '!test/e2e/**'
- 'test/e2e/driver/**'
- '!*.md'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/ci.yml'
- '**/pom.xml'
- '**/src/main/**'
- '**/src/test/**'
- '!distribution/**'
- 'test/it/**'
- '!test/e2e/**'
- 'test/e2e/driver/**'
- '!*.md'
repository_dispatch:
types: ci-completed
workflow_dispatch:

concurrency:
Expand All @@ -54,35 +30,22 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true

jobs:
global-environment:
name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml

ci:
if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
name: CI - Compile by JDK 11 and Run on JDK 8
needs: global-environment
send-failure-message:
name: Send Failure Message
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 25
if: always()
steps:
- uses: actions/checkout@v3
- name: Setup JDK 11 for Build
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-
- name: Build Project with Maven
run: ./mvnw clean install -B -ntp -DskipTests -T1C
- name: Setup JDK 8 for Test
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
- name: Run Tests with JDK 8
run: ./mvnw install -T1C -B -ntp -fae
- name: Send Failure Message
timeout-minutes: 5
env:
ACTIONS_FEISHU_TAG: 'v1.3.1'
INPUT_WEBHOOK: "${{ secrets.FEISHU_ROBOT_NIGHTLY_BUILD }}"
INPUT_MESSAGE_TYPE: "post"
INPUT_TITLE: "Warning"
INPUT_CONTENT: "The CI job failed. Please check the log for details."
run: |
wget -q https://github.com/xiachufang/actions-feishu/releases/download/${{ env.ACTIONS_FEISHU_TAG }}/linux-amd64-actions-feishu.tar.gz
tar zxf linux-amd64-actions-feishu.tar.gz feishu
./feishu

115 changes: 0 additions & 115 deletions .github/workflows/e2e-agent.yml

This file was deleted.

109 changes: 0 additions & 109 deletions .github/workflows/e2e-operation.yml

This file was deleted.

Loading
Loading