Repository navigation
56 lines (52 loc) · 1.69 KB
/
Copy pathidp-basic-test.yml
File metadata and controls
56 lines (52 loc) · 1.69 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
name: IdP Basic Test
on:
push:
branches: ["main", "branch-*"]
pull_request:
branches: ["main", "branch-*"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Disable Git automatic maintenance
run: git config --local maintenance.auto false
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d
id: filter
with:
filters: |
source_changes:
- plugins/idp-basic/**
- clients/client-java/**
- clients/client-java-runtime/**
- integration-test-common/**
- core/**
- gradle/**
- gradlew
- dev/**
- build.gradle.kts
- gradle.properties
- settings.gradle.kts
- .github/workflows/idp-basic-test.yml
- .github/workflows/idp-basic-test-action.yml
- name: Detect idp-basic module
id: module
run: |
if [ -f plugins/idp-basic/build.gradle.kts ]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
outputs:
source_changes: ${{ steps.filter.outputs.source_changes }}
module_exists: ${{ steps.module.outputs.exists }}
idp-basic-test:
needs: changes
if: needs.changes.outputs.source_changes == 'true' && needs.changes.outputs.module_exists == 'true'
uses: ./.github/workflows/idp-basic-test-action.yml
with:
java-version: '17'