Skip to content

Commit e5c8eba

Browse files
committed
publish workflow 1.0.15
Signed-off-by: shalom <[email protected]>
1 parent ed1132a commit e5c8eba

File tree

3 files changed

+90
-65
lines changed

3 files changed

+90
-65
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+
name: Multi Java CI Build
9+
10+
on:
11+
push:
12+
branches: [ 'main' ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
java: [ '11', '17' ]
20+
name: Java ${{ matrix.Java }} sample
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Set up JDK 11
26+
uses: actions/setup-java@v3
27+
with:
28+
java-version: ${{ matrix.java }}
29+
distribution: 'corretto'
30+
31+
- name: Setup dotnet
32+
uses: actions/setup-dotnet@v2
33+
with:
34+
dotnet-version: |
35+
6.0.102
36+
- name: Validate Gradle wrapper
37+
uses: gradle/[email protected]
38+
39+
- name: Build with Gradle
40+
uses: gradle/[email protected]
41+
with:
42+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
43+
arguments: buildPlugin --no-daemon
44+
45+
46+
# Collect Tests Result of failed tests
47+
##todo: add other modules test reports
48+
- name: Collect Tests Result
49+
if: ${{ failure() }}
50+
uses: actions/upload-artifact@v3
51+
with:
52+
name: tests-result
53+
path: ${{ github.workspace }}/ide-common/build/reports/tests

.github/workflows/multi-os-build.yml

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,48 @@
55
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
66
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
77

8-
name: Multi OS Java CI with Gradle
8+
name: Multi OS CI Build
99

10-
on: workflow_dispatch
10+
on:
11+
push:
12+
branches: [ 'main' ]
1113

1214
jobs:
13-
gradle:
15+
build:
1416
strategy:
1517
matrix:
16-
os: [ubuntu-latest, macos-latest]
18+
os: [ ubuntu-latest, macos-latest ]
1719
runs-on: ${{ matrix.os }}
1820

1921
steps:
20-
- uses: actions/checkout@v3
21-
- name: Set up JDK 11
22-
uses: actions/setup-java@v3
23-
with:
24-
java-version: '11'
25-
distribution: 'temurin'
26-
- name: Setup dotnet
27-
uses: actions/setup-dotnet@v2
28-
with:
29-
dotnet-version: |
30-
6.0.102
31-
- name: Build with Gradle
32-
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
33-
with:
34-
cache-disabled: true
35-
arguments: clean build buildPlugin
36-
- name: Build with Gradle release-nightly
37-
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
38-
with:
39-
cache-disabled: true
40-
gradle-version: release-nightly
41-
arguments: clean build buildPlugin
22+
- uses: actions/checkout@v3
23+
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: '11'
28+
distribution: 'corretto'
29+
30+
- name: Setup dotnet
31+
uses: actions/setup-dotnet@v2
32+
with:
33+
dotnet-version: |
34+
6.0.102
35+
- name: Validate Gradle wrapper
36+
uses: gradle/[email protected]
37+
38+
- name: Build with Gradle
39+
uses: gradle/[email protected]
40+
with:
41+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
42+
arguments: buildPlugin --no-daemon
43+
44+
45+
# Collect Tests Result of failed tests
46+
##todo: add other modules test reports
47+
- name: Collect Tests Result
48+
if: ${{ failure() }}
49+
uses: actions/upload-artifact@v3
50+
with:
51+
name: tests-result
52+
path: ${{ github.workspace }}/ide-common/build/reports/tests

.github/workflows/verify-plugin.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)