Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/foreman_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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@v4
if: ${{ failure() && contains(matrix.task, 'test') }}
Expand Down
Loading