-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (68 loc) · 1.77 KB
/
pr.yml
File metadata and controls
73 lines (68 loc) · 1.77 KB
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
70
71
72
73
---
name: 'PR tests'
'on':
- pull_request
jobs:
vagrant-syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: '4.0.0'
bundler-cache: false
- run: ruby -wc Vagrantfile
syntax:
runs-on: ubuntu-latest
strategy:
matrix:
module:
- profile
- role
openvox:
- label: 'OpenVox 8'
openvox_version: '~> 8'
ruby_version: '3.2'
env:
OPENVOX_GEM_VERSION: ${{matrix.openvox.openvox_version}}
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.openvox.ruby_version}}
bundler-cache: true
working-directory: site/${{matrix.module}}
- run: bundle exec rake validate lint check rubocop
working-directory: site/${{matrix.module}}
parallel_spec:
needs:
- syntax
runs-on: ubuntu-latest
strategy:
matrix:
module:
- profile
- role
openvox:
- label: 'OpenVox 8'
openvox_version: '~> 8'
ruby_version: '3.2'
env:
OPENVOX_GEM_VERSION: ${{matrix.openvox.openvox_version}}
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.openvox.ruby_version}}
bundler-cache: true
working-directory: site/${{matrix.module}}
- run: bundle exec rake parallel_spec
working-directory: site/${{matrix.module}}
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install yamllint
run: pip install 'yamllint>=1,<2'
- name: Run yamllint
run: yamllint .