]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Switch to bundler 2.x
[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           - ntp
60           - openssh
61           - osmosis
62           - osqa
63           - otrs
64           - passenger
65           - piwik
66           - planet
67           - planet-current
68           - planet-dump
69           - planet-notes
70           - planet-replication
71           - postgresql
72           - python
73           - rsyncd
74           - serverinfo
75           - snmpd
76           - spamassassin
77           - squid
78           - ssl
79           - stateofthemap
80           - subversion
81           - supybot
82           - switch2osm
83           - sysctl
84           - sysfs
85           - taginfo
86           - tile
87           - tilecache
88           - tilelog
89           - tools
90           - trac
91           - web-backend
92           - web-cgimap
93           - web-frontend
94           - web-rails
95           - wordpress
96           - wiki
97         os:
98           - ubuntu-1804
99       fail-fast: false
100     steps:
101     - name: Check out code
102       uses: actions/checkout@v2
103     - name: Setup ruby
104       uses: actions/setup-ruby@v1
105     - name: Cache gems
106       uses: actions/cache@v1
107       with:
108         path: vendor/bundle
109         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
110         restore-keys: |
111           bundle-${{ runner.OS }}-
112     - name: Disable apparmor for mysqld
113       run: |
114         sudo apt-get install apparmor-utils
115         sudo aa-disable /usr/sbin/mysqld
116     - name: Install gems
117       run: |
118         gem install bundler
119         bundle config set deployment true
120         bundle install --jobs 4 --retry 3
121     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
122       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}