]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
27cc47d85c156de68cb4d875e3d9ee4819debd27
[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           - donate
29           - elasticsearch
30           - exim
31           - fail2ban
32           - forum
33           - ftp
34           - geodns
35           - geoipupdate
36           - git
37           - git-server
38           - git-web
39           - gps-tile
40           - hardware
41           - hot
42           - incron
43           - irc
44           - kibana
45           - letsencrypt
46           - logstash
47           - logstash-forwarder
48           - mail
49           - mailman
50           - memcached
51           - munin
52           - munin-plugins
53           - munin-server
54           - mysql
55           - networking
56           - nginx
57           - nodejs
58           - ntp
59           - openssh
60           - osmosis
61           - osqa
62           - otrs
63           - passenger
64           - piwik
65           - planet
66           - planet-current
67           - planet-dump
68           - planet-notes
69           - planet-replication
70           - postgresql
71           - python
72           - rsyncd
73           - serverinfo
74           - snmpd
75           - spamassassin
76           - squid
77           - ssl
78           - stateofthemap
79           - subversion
80           - supybot
81           - switch2osm
82           - sysctl
83           - sysfs
84           - taginfo
85           - tile
86           - tilecache
87           - tilelog
88           - tools
89           - trac
90           - web-backend
91           - web-cgimap
92           - web-frontend
93           - web-rails
94           - wordpress
95         os:
96           - ubuntu-1804
97       fail-fast: false
98     steps:
99     - name: Check out code
100       uses: actions/checkout@v2
101     - name: Setup ruby
102       uses: actions/setup-ruby@v1
103     - name: Cache gems
104       uses: actions/cache@v1
105       with:
106         path: vendor/bundle
107         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
108         restore-keys: |
109           bundle-${{ runner.OS }}-
110     - name: Disable apparmor for mysqld
111       run: |
112         sudo apt-get install apparmor-utils
113         sudo aa-disable /usr/sbin/mysqld
114     - name: Install gems
115       run: |
116         gem install bundler --version "~> 1.17"
117         bundle install --jobs 4 --retry 3 --deployment
118     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
119       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}