-
Notifications
You must be signed in to change notification settings - Fork 24
49 lines (47 loc) · 1.31 KB
/
bom-content-test.yaml
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
on:
push:
branches:
- main
pull_request:
name: ci
jobs:
bom-content-test:
runs-on: ubuntu-latest
if: github.repository_owner == 'googleapis'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: maven
- run: java -version
- name: Install BOMs
run: |
mvn -B -V -ntp install
- name: Ensure the members of the Libraries BOM exist in Maven Central
uses: ./tests/validate-bom
with:
bom-path: libraries-bom/pom.xml
- name: Ensure the BOM has valid content (at releases)
if: github.head_ref == 'release-please--branches--main'
run: |
mvn -B -V -ntp verify -Dtest="BomContentTest#testLibrariesBom"
working-directory: tests
bom-assertion-test:
name: BomContentAssertionsTest (Test for assertion logic in BomContentTest)
runs-on: ubuntu-latest
if: github.repository_owner == 'googleapis'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 8
- run: java -version
- name: Install BOMs
run: |
mvn -B -V -ntp install
- run: |
mvn -B -V -ntp verify -Dtest="BomContentAssertionsTest"
working-directory: tests