Skip to content

Actions to preview docs #893

Actions to preview docs

Actions to preview docs #893

Workflow file for this run

name: Build
on:
push:
branches:
- "main"
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
- '.all-contributorsrc'
pull_request:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- '*.md'
- '*.txt'
- '.all-contributorsrc'
jobs:
build:
name: Build - RESTEasy Classic
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
java: [
{ 'version': '11' },
{ 'version': '17' }
]
steps:
- name: Prepare git
run: git config --global core.autocrlf false
if: startsWith(matrix.os, 'windows')
- uses: actions/checkout@v4
- name: Set up JDK ${{matrix.java.version}}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{matrix.java.version}}
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.6
- name: Build with Maven
run: mvn '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml
- name: Store PR id
run: |
echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt
- name: Publishing directory for PR preview
uses: actions/upload-artifact@v3
with:
name: site
path: ./docs/target/generated-docs
retention-days: 3
build_reactive:
name: Build - RESTEasy Reactive
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
java: [
{ 'version': '11' },
{ 'version': '17' }
]
steps:
- name: Prepare git
run: git config --global core.autocrlf false
if: startsWith(matrix.os, 'windows')
- uses: actions/checkout@v4
- name: Set up JDK ${{matrix.java.version}}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{matrix.java.version}}
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.6
- name: Build with Maven
run: mvn -Presteasy-reactive '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml
- name: Store PR id
run: |
echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt
- name: Publishing directory for PR preview
uses: actions/upload-artifact@v3
with:
name: site
path: ./docs/target/generated-docs
retention-days: 3