ci(deps): update ruby/setup-ruby action to v1.200.0 #2363
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test the ruby generator | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ruby-generator-test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
with: | |
path: shared-slides | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1.200.0 | |
with: | |
working-directory: shared-slides | |
- name: Check the Ruby syntax | |
run: ruby -c shared-slides/preprocess.rb | |
- uses: actions/checkout@v4.2.2 | |
with: | |
repository: DanySK/Course-DTM-SE-3 | |
path: target | |
- name: Run tests | |
run: | | |
shared-slides/preprocess.rb | |
[ -s target/content/dvcs-basics/_index.md ] | |
existing-websites-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- repo: DanySK/Course-DTM-SE-3 | |
folder: '.' | |
- repo: unibo-spe/spe-slides | |
folder: '.' | |
- repo: DanySK/Course-Laboratory-of-Software-Systems | |
folder: 'slides' | |
- repo: apice-at-disi/oop-lab | |
folder: 'slides-markdown' | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
with: | |
repository: ${{ matrix.target.repo }} | |
- uses: actions/checkout@v4.2.2 | |
with: | |
path: ${{ matrix.target.folder }}/shared-slides | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1.200.0 | |
with: | |
working-directory: ${{ matrix.target.folder }}/shared-slides | |
- name: Run tests | |
working-directory: ${{ matrix.target.folder }} | |
run: | | |
shared-slides/preprocess.rb | |
generator-success: | |
runs-on: ubuntu-24.04 | |
needs: | |
- ruby-generator-test | |
- existing-websites-test | |
if: >- | |
always() && ( | |
contains(join(needs.*.result, ','), 'failure') | |
|| !contains(join(needs.*.result, ','), 'cancelled') | |
) | |
steps: | |
- name: Verify that there were no failures | |
run: ${{ !contains(join(needs.*.result, ','), 'failure') }} |