]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Bump cookstyle from 7.26.1 to 7.28.2
[chef.git] / .github / workflows / test-kitchen.yml
1 name: Test Kitchen
2 on:
3   - push
4   - pull_request
5 jobs:
6   kitchen:
7     name: Test Kitchen
8     runs-on: ubuntu-latest
9     strategy:
10       matrix:
11         suite:
12           - accounts
13           - apache
14           - apt
15           - backup
16           - bind
17           - blog
18           - blogs
19           - civicrm
20           - clamav
21           - db-backup
22           - db-base
23           - db-master
24           - db-slave
25           - devices
26           - dhcpd
27           - dmca
28           - dns
29           - docker
30           - donate
31           - elasticsearch
32           - exim
33           - fail2ban
34           - forum
35           - ftp
36           - geodns
37           - geoipupdate
38           - git
39           - git-server
40           - git-web
41           - gps-tile
42           - hardware
43           - hot
44           - incron
45           - irc
46           - kibana
47           - letsencrypt
48           - logstash
49           - logstash-forwarder
50           - mail
51           - mailman
52           - memcached
53           - munin
54           - munin-plugins
55           - munin-server
56           - mysql
57           - networking
58           - nginx
59           - nodejs
60           - nominatim
61           - ntp
62           - openssh
63           - osmosis
64           - osqa
65           - otrs
66           - passenger
67           - php
68           - php-apache
69           - php-fpm
70           - piwik
71           - planet
72           - planet-current
73           - planet-dump
74           - planet-notes
75           - planet-replication
76           - postgresql
77           - prometheus
78           - prometheus-server
79           - python
80           - rsyncd
81           - serverinfo
82           - snmpd
83           - spamassassin
84           - ssl
85           - stateofthemap
86           - subversion
87           - supybot
88           - switch2osm
89           - sysctl
90           - sysfs
91           - taginfo
92           - tile
93           - tilelog
94           - tools
95           - trac
96           - web-backend
97           - web-cgimap
98           - web-frontend
99           - web-rails
100           - wordpress
101           - wiki
102         os:
103           - ubuntu-2004
104       fail-fast: false
105     steps:
106     - name: Check out code
107       uses: actions/checkout@v2.4.0
108     - name: Setup ruby
109       uses: actions/setup-ruby@v1.1.3
110     - name: Cache gems
111       uses: actions/cache@v2.1.7
112       with:
113         path: vendor/bundle
114         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
115         restore-keys: |
116           bundle-${{ runner.OS }}-
117     - name: Disable apparmor for mysqld
118       run: |
119         sudo apt-get install apparmor-utils
120         sudo aa-disable /usr/sbin/mysqld
121     - name: Install gems
122       run: |
123         gem install bundler
124         bundle config set deployment true
125         bundle install --jobs 4 --retry 3
126     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
127       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}