-
Notifications
You must be signed in to change notification settings - Fork 30
102 lines (93 loc) · 2.5 KB
/
push_and_pr.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Project Validation
on:
push:
branches: [ "master", "hurricup/dev243" ]
pull_request:
branches: [ "master", "hurricup/dev243" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: "Build"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
- name: Instrumenting tests
run: |
./gradlew jar instrumentTest --console plain
codeql:
needs: build
name: CodeQL
uses: ./.github/workflows/_codeql.yml
secrets: inherit
qodana:
needs: build
name: Qodana
uses: ./.github/workflows/_qodana.yml
secrets: inherit
plugins:
needs: build
name: Plugins
uses: ./.github/workflows/_build_plugins.yml
secrets: inherit
tests:
needs: build
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: Tests
uses: ./.github/workflows/_tests.yml
with:
os: ${{ matrix.os }}
secrets: inherit
tests-aggregator:
needs: tests
if: ${{ success() }}
runs-on: ubuntu-latest
name: Tests Results Aggregator
outputs:
success: ${{ steps.aggregate.outputs.success }}
steps:
- id: aggregate
name: Aggregate results
run: echo "success=true" >> $GITHUB_OUTPUT
all-tests:
needs: [ tests, tests-aggregator ]
if: ${{ always() }}
runs-on: ubuntu-latest
name: All tests
steps:
- name: Done
run: |
echo Success flag: ${{ needs.tests-aggregator.outputs.success }}
if [[ "${{ needs.tests-aggregator.outputs.success }}" == "true" ]]; then
echo "Tests passed"
exit 0
else
echo "Tests failed"
exit 1
fi
coverage:
needs: tests
name: Coverage
uses: ./.github/workflows/_coverage.yml
secrets: inherit