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