-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (67 loc) · 1.88 KB
/
test-generator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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.197.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.197.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') }}