]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Add test for planet::current recipe
[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           - bind
16           - blog
17           - blogs
18           - civicrm
19           - clamav
20           - devices
21           - dhcpd
22           - dmca
23           - donate
24           - exim
25           - fail2ban
26           - forum
27           - ftp
28           - geodns
29           - geoipupdate
30           - gps-tile
31           - hardware
32           - incron
33           - letsencrypt
34           - mailman
35           - memcached
36           - munin
37           - munin-plugins
38           - munin-server
39           - mysql
40           - networking
41           - nginx
42           - nodejs
43           - ntp
44           - openssh
45           - osmosis
46           - osqa
47           - otrs
48           - passenger
49           - piwik
50           - planet
51           - planet-current
52           - planet-dump
53           - planet-notes
54           - planet-replication
55           - postgresql
56           - python
57           - rsyncd
58           - serverinfo
59           - spamassassin
60           - squid
61           - stateofthemap
62           - subversion
63           - supybot
64           - switch2osm
65           - taginfo
66           - tile
67           - tilecache
68           - tools
69           - trac
70           - web-backend
71           - web-cgimap
72           - web-frontend
73           - web-rails
74         os:
75           - ubuntu-1804
76       fail-fast: false
77     steps:
78     - name: Check out code
79       uses: actions/checkout@v2
80     - name: Setup ruby
81       uses: actions/setup-ruby@v1
82     - name: Cache gems
83       uses: actions/cache@v1
84       with:
85         path: vendor/bundle
86         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
87         restore-keys: |
88           bundle-${{ runner.OS }}-
89     - name: Disable apparmor for mysqld
90       run: |
91         sudo apt-get install apparmor-utils
92         sudo aa-disable /usr/sbin/mysqld
93     - name: Install gems
94       run: |
95         gem install bundler --version "~> 1.17"
96         bundle install --jobs 4 --retry 3 --deployment
97     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
98       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}