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