From 2cb190787e6580a4b66ef648cd68544af4eebe55 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 24 Nov 2022 17:14:30 +0100 Subject: [PATCH 1/2] Run the docs tests in the doc build --- .github/workflows/doc-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 1c2ba99450ec4..1d64facb5025a 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -53,8 +53,8 @@ jobs: key: q2maven-doc-${{ steps.get-date.outputs.date }} - name: Build run: | - ./mvnw -Dquickly-ci -B -DskipDocs=false --settings .github/mvn-settings.xml install + ./mvnw -DquicklyDocs -B --settings .github/mvn-settings.xml - name: Build Docs run: | - ./mvnw -e -B --settings .github/mvn-settings.xml clean org.asciidoctor:asciidoctor-maven-plugin:process-asciidoc -pl docs -Ddocumentation-pdf + ./mvnw -e -B --settings .github/mvn-settings.xml clean package -pl docs From 692b565cdc86cc76ce3b90be41446975acf7fe10 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 24 Nov 2022 17:22:03 +0100 Subject: [PATCH 2/2] Introduce a workflow for linting with Vale --- .github/workflows/vale.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/vale.yml diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml new file mode 100644 index 0000000000000..aef7dbcfdd5e4 --- /dev/null +++ b/.github/workflows/vale.yml @@ -0,0 +1,33 @@ +--- +name: Linting with Vale +on: + pull_request: + paths: + - 'docs/src/main/asciidoc/**' + - '.github/workflows/vale.yml' + +concurrency: + group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}" + cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'quarkusio/quarkus' }} + +jobs: + vale: + name: Linting with Vale + runs-on: ubuntu-latest + permissions: + actions: read + checks: read + contents: read + pull-requests: read + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Vale Linter + uses: errata-ai/vale-action@reviewdog + with: + fail_on_error: false + vale_flags: "--no-exit --config=docs/.vale/vale.ini" + filter_mode: diff_context + files: docs/src/main/asciidoc/ + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}