-
Notifications
You must be signed in to change notification settings - Fork 51
37 lines (35 loc) · 1021 Bytes
/
main.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
name: CI
on: pull_request
jobs:
puppet:
runs-on: ubuntu-latest
name: Puppet
defaults:
run:
working-directory: puppet
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
working-directory: puppet
- name: Install yajl-tools
run: sudo apt-get install -y yajl-tools
- name: Setup g10k
run: |
wget https://github.com/xorpaul/g10k/releases/download/v0.8.9/g10k-linux-amd64.zip
unzip g10k-linux-amd64.zip
- name: Install modules using g10k
run: ./g10k -cachedir .g10k/cache -puppetfile
- name: Verify dependencies are compatible
run: bundle exec ./check_dependencies
- name: Run syntax
run: bundle exec rake syntax
- name: Run lint
run: bundle exec rake lint
- name: Run tests
run: bundle exec rake spec