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