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') }}