]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Merge remote-tracking branch 'github/pull/272'
[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-dump
52           - planet-notes
53           - planet-replication
54           - postgresql
55           - python
56           - rsyncd
57           - serverinfo
58           - spamassassin
59           - squid
60           - stateofthemap
61           - subversion
62           - supybot
63           - switch2osm
64           - taginfo
65           - tile
66           - tilecache
67           - tools
68           - trac
69           - web-backend
70           - web-cgimap
71           - web-frontend
72           - web-rails
73         os:
74           - ubuntu-1804
75       fail-fast: false
76     steps:
77     - name: Check out code
78       uses: actions/checkout@v1
79       with:
80         fetch-depth: 1
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 }}