]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Switch to github actions/checkout@v2
[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@v2
79     - name: Setup ruby
80       uses: actions/setup-ruby@v1
81     - name: Cache gems
82       uses: actions/cache@v1
83       with:
84         path: vendor/bundle
85         key: bundle-${{ runner.OS }}-${{ hashFiles('Gemfile.lock') }}
86         restore-keys: |
87           bundle-${{ runner.OS }}-
88     - name: Disable apparmor for mysqld
89       run: |
90         sudo apt-get install apparmor-utils
91         sudo aa-disable /usr/sbin/mysqld
92     - name: Install gems
93       run: |
94         gem install bundler --version "~> 1.17"
95         bundle install --jobs 4 --retry 3 --deployment
96     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
97       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}