From bf5ca6d75fadf4afd9131c0c9efc1fef8f0c6ce5 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 21 Aug 2025 08:33:54 +0200 Subject: [PATCH] Reapply "build apidoc during tests" This reverts commit bba5bd4085336ba1d2800617ff8f64dd06d75a9a. --- .github/workflows/foreman_plugin.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/foreman_plugin.yml b/.github/workflows/foreman_plugin.yml index d84978d..945ee8d 100644 --- a/.github/workflows/foreman_plugin.yml +++ b/.github/workflows/foreman_plugin.yml @@ -98,7 +98,7 @@ jobs: node: ${{ fromJson(needs.setup_matrix.outputs.matrix).node }} postgresql: ${{ fromJson(needs.setup_matrix.outputs.matrix).postgresql }} task: - - 'test:${{ inputs.plugin }}' + - 'test:${{ inputs.plugin }} apipie:cache' - 'db:seed' - 'plugin:assets:precompile[${{ inputs.plugin }}] RAILS_ENV=production DATABASE_URL=nulldb://nohost' include: ${{ fromJson(needs.setup_matrix.outputs.matrix).include }} @@ -186,7 +186,13 @@ jobs: run: cp -f db/schema.rb.nulldb db/schema.rb if: ${{ contains(matrix.task, 'nulldb') }} - name: Run rake ${{ matrix.task }} - run: bundle exec rake ${{ matrix.task }} + run: ${{ contains(matrix.task, 'apipie') && 'APIPIE_RECORD=examples FOREMAN_APIPIE_LANGS=en' || '' }} bundle exec rake ${{ matrix.task }} + - name: Archive apidoc + uses: actions/upload-artifact@v4 + if: contains(matrix.task, 'apipie') + with: + name: apidoc-${{ env.ARTIFACT_SUFFIX }} + path: public/apipie-cache/apidoc/ - name: Upload logs uses: actions/upload-artifact@v5 if: ${{ failure() && contains(matrix.task, 'test') }}