]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
88f42b0a520710c6aa9963669cd0069d433e8c18
[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           - squid
85           - ssl
86           - stateofthemap
87           - subversion
88           - supybot
89           - switch2osm
90           - sysctl
91           - sysfs
92           - taginfo
93           - tile
94           - tilecache
95           - tilelog
96           - tools
97           - trac
98           - web-backend
99           - web-cgimap
100           - web-frontend
101           - web-rails
102           - wordpress
103           - wiki
104         os:
105           - ubuntu-2004
106       fail-fast: false
107     steps:
108     - name: Check out code
109       uses: actions/checkout@v2.3.5
110     - name: Setup ruby
111       uses: actions/setup-ruby@v1.1.3
112     - name: Cache gems
113       uses: actions/cache@v2.1.6
114       with:
115         path: vendor/bundle
116         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
117         restore-keys: |
118           bundle-${{ runner.OS }}-
119     - name: Disable apparmor for mysqld
120       run: |
121         sudo apt-get install apparmor-utils
122         sudo aa-disable /usr/sbin/mysqld
123     - name: Install gems
124       run: |
125         gem install bundler
126         bundle config set deployment true
127         bundle install --jobs 4 --retry 3
128     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
129       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}