-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.21 KB
/
Copy pathplugin-build.yml
File metadata and controls
50 lines (41 loc) · 1.21 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
name: Build JetBrains Plugin
on:
push:
branches: ['**']
paths:
- 'jetbrains-plugin/**'
- '.github/workflows/plugin-build.yml'
pull_request:
branches: ['**']
paths:
- 'jetbrains-plugin/**'
- '.github/workflows/plugin-build.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no_run')
name: Build & Test Plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
working-directory: jetbrains-plugin
run: ./gradlew test
- name: Build plugin
working-directory: jetbrains-plugin
run: ./gradlew buildPlugin
- name: Upload plugin artifact
uses: actions/upload-artifact@v4
with:
name: mariadb-profiler-viewer-plugin
path: jetbrains-plugin/build/distributions/*.zip
if-no-files-found: error