-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathci-all-java-temurin-versions.yaml
More file actions
60 lines (56 loc) · 2.04 KB
/
Copy pathci-all-java-temurin-versions.yaml
File metadata and controls
60 lines (56 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI with all Temurin Java versions
# This CI runs all the tests with Java 8, 11, 17, and 21 provided by Temurin.
on:
workflow_dispatch:
inputs:
REPORT_ON_SLACK:
description: Whether to report the result to Slack or not
type: boolean
default: false
jobs:
ci:
name: CI with Java ${{ matrix.java_version }}
strategy:
fail-fast: false
matrix:
java_version: ['8', '11', '17', '21']
uses: ./.github/workflows/ci.yaml
with:
INT_TEST_JAVA_RUNTIME_VERSION: ${{ matrix.java_version }}
INT_TEST_JAVA_RUNTIME_VENDOR: 'temurin'
INTEGRATION_TEST_ONLY: ${{ matrix.java_version != '8' }}
secrets: inherit
report:
if: ${{ always() && github.event.inputs.REPORT_ON_SLACK == 'true' && github.run_attempt == '1' }}
name: Report on Slack
runs-on: ubuntu-latest
needs:
- ci
env:
ACTION_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
BRANCH_NAME: ${{ github.ref_name }}
steps:
- name: Report the success on Slack
uses: slackapi/slack-github-action@v3.0.1
if: needs.ci.result == 'success'
with:
webhook: ${{ secrets.SLACK_SCALARDB_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
blocks:
- type: "section"
text:
type: "mrkdwn"
text: ":large_green_circle:【ScalarDB Core】The weekly CI run on `${{ env.BRANCH_NAME }}` branch <${{ env.ACTION_URL }}|passed>"
- name: Report the failure on Slack
uses: slackapi/slack-github-action@v3.0.1
if: needs.ci.result == 'failure'
with:
webhook: ${{ secrets.SLACK_SCALARDB_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
blocks:
- type: "section"
text:
type: "mrkdwn"
text: ":red_circle:【ScalarDB Core】The weekly CI run on `${{ env.BRANCH_NAME }}` branch <${{ env.ACTION_URL }}|failed>"