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