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