Skip to content

Commit

Permalink
Merge pull request #1354 from smallrye/ci/streamline-main-build
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier authored Sep 1, 2023
2 parents 2f0106d + 495dcf1 commit aa0d546
Showing 1 changed file with 2 additions and 43 deletions.
45 changes: 2 additions & 43 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,6 @@ concurrency:
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
{ 'version': '11', opts: '' },
{ 'version': '17', 'opts': '' },
{ 'version': '20', 'opts': '' }
]
name: Build with Java ${{ matrix.java.version }} (OpenJDK)
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
name: set up jdk ${{matrix.java.version}}
with:
distribution: temurin
java-version: ${{matrix.java.version}}
cache: maven
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: ./mvnw -s .build/maven-ci-settings.xml -B clean verify

snapshot:
name: Deploy snapshots
needs: build
Expand All @@ -44,30 +21,12 @@ jobs:
java-version: 11
distribution: temurin
cache: maven
- name: Build with Maven
run: ./mvnw -s .build/maven-ci-settings.xml -B clean verify
- name: Deploy snapshots
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SECRET_FILES_PASSPHRASE: ${{ secrets.SECRET_FILES_PASSPHRASE }}
run: |
.build/decrypt-secrets.sh
.build/deploy-snapshot.sh
quality-and-compatibility:
name: Test coverage and compatibility checks
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: Compatibility checks
run: ./mvnw -s .build/maven-ci-settings.xml -pl '!bom' -B install revapi:check@check-compatibility -DskipTests -fae
- name: Test coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw -s .build/maven-ci-settings.xml verify -Pcoverage
- name: Codecov
uses: codecov/[email protected]

0 comments on commit aa0d546

Please sign in to comment.