-
Notifications
You must be signed in to change notification settings - Fork 545
54 lines (49 loc) · 1.61 KB
/
source_bitbucket.yml
File metadata and controls
54 lines (49 loc) · 1.61 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
name: Source Plugin Bitbucket Workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- "plugins/source/bitbucket/**"
- ".github/workflows/source_bitbucket.yml"
push:
branches:
- main
paths:
- "plugins/source/bitbucket/**"
- ".github/workflows/source_bitbucket.yml"
permissions:
contents: read
jobs:
plugins-source-bitbucket:
timeout-minutes: 30
name: "plugins/source/bitbucket"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./plugins/source/bitbucket
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 2
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: "temurin"
java-version: "20"
cache: "gradle"
cache-dependency-path: "plugins/source/bitbucket/**/build.gradle"
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f # v6
- name: Build package
run: ./gradlew build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@3585e9575db828022551b4231f165eb59a0e74e3 # v5
if: success() || failure() # always run even if the previous step fails
with:
report_paths: "**/build/test-results/test/TEST-*.xml"
require_passed_tests: true
fail_on_failure: true