-
Notifications
You must be signed in to change notification settings - Fork 44
52 lines (47 loc) · 1.53 KB
/
pr_checks.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
# Validate simple & quick things, like syntax & lint
name: PR Validation
on:
pull_request:
types: [opened, reopened, synchronize]
env:
# Required to prevent all rake tasks from exploding
SIMP_RPM_dist: .el7
jobs:
validate-yaml:
name: YAML syntax
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: 'command -v rpm || if command -v apt-get; then apt-get update; apt-get install -y rpm; fi ||:'
- run: bundle exec rake check:syntax:yaml
rpm_checks:
name: RPM checks
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: 'command -v rpm || if command -v apt-get; then apt-get update; apt-get install -y rpm; fi ||:'
- run: |
command -v rpm || if command -v apt-get; then apt-get update; apt-get install -y rpm; fi ||:
bundle exec rake check:dot_underscore
bundle exec rake check:test_file
module_checks:
name: Puppet module checks
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: 'command -v rpm || if command -v apt-get; then apt-get update; apt-get install -y rpm; fi ||:'
- run: |
bundle exec rake metadata_lint
bundle exec pdk build --force --target-dir=dist