]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
a962a5e8bbe9b7f12953dbe380353b326647c69b
[chef.git] / .github / workflows / test-kitchen.yml
1 name: Test Kitchen
2
3 on:
4   - push
5   - pull_request
6
7 concurrency:
8   group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9   cancel-in-progress: true
10
11 jobs:
12   kitchen:
13     name: Test Kitchen
14     runs-on: ubuntu-22.04
15     strategy:
16       matrix:
17         suite:
18           - accounts
19           - apache
20           - apt
21           - backup
22           - bind
23           - blog
24           - blogs
25           - civicrm
26           - clamav
27           - community
28           - db-backup
29           - db-base
30           - db-master
31           - db-slave
32           - devices
33           - dhcpd
34           - dmca
35           - dns
36           - docker
37           - donate
38           - elasticsearch
39           - exim
40           - fail2ban
41           - forum
42           - foundation-board
43           - foundation-dwg
44           - foundation-mwg
45           - foundation-owg
46           - foundation-wiki
47           - ftp
48           - geodns
49           - geoipupdate
50           - git
51           - git-server
52           - git-web
53           - gps-tile
54           - hardware
55           - hot
56           - incron
57           - irc
58           - kibana
59           - letsencrypt
60           - logstash
61           - logstash-forwarder
62           - mail
63           - mailman
64           - matomo
65           - memcached
66           - munin
67           - munin-plugins
68           - munin-server
69           - mysql
70           - networking
71           - nginx
72           - nodejs
73           - nominatim
74           - ntp
75           - openssh
76           - osmosis
77           - osqa
78           - otrs
79           - overpass
80           - passenger
81           - php
82           - php-apache
83           - php-fpm
84           - planet
85           - planet-current
86           - planet-dump
87           - planet-notes
88           - planet-replication
89           - postgresql
90           - prometheus
91           - prometheus-server
92           - python
93           - rsyncd
94           - serverinfo
95           - snmpd
96           - spamassassin
97           - ssl
98           - stateofthemap
99           - stateofthemap-jekyll
100           - stateofthemap-static
101           - stateofthemap-wordpress
102           - subversion
103           - supybot
104           - switch2osm
105           - sysctl
106           - sysfs
107           - taginfo
108           - tile
109           - tilelog
110           - tools
111           - trac
112           - web-cgimap
113           - web-frontend
114           - web-rails
115           - wordpress
116           - wiki
117         os:
118           - ubuntu-2204
119         include:
120           - os: ubuntu-2004
121             suite: mailman
122           - os: ubuntu-2004
123             suite: osqa
124         exclude:
125           - suite: mailman
126             os: ubuntu-2204
127           - suite: osqa
128             os: ubuntu-2204
129       fail-fast: false
130     steps:
131     - name: Check out code
132       uses: actions/checkout@v3
133     - name: Setup ruby
134       uses: ruby/setup-ruby@v1
135       with:
136         ruby-version: 3.1
137         bundler-cache: true
138     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
139       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
140     - name: Gather journal output
141       run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
142       if: ${{ failure() }}