]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
33af67104945a7c382f7bb5f2ac92444cd15c483
[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           - elasticsearch
38           - exim
39           - fail2ban
40           - foundation-board
41           - foundation-dwg
42           - foundation-mwg
43           - foundation-owg
44           - foundation-welcome
45           - foundation-wiki
46           - ftp
47           - geodns
48           - geoipupdate
49           - git
50           - git-server
51           - git-web
52           - gps-tile
53           - hardware
54           - hot
55           - ideditor
56           - irc
57           - kibana
58           - letsencrypt
59           - logstash
60           - logstash-forwarder
61           - mail
62           - mailman
63           - matomo
64           - memcached
65           - munin
66           - munin-plugins
67           - munin-server
68           - mysql
69           - networking
70           - nginx
71           - nodejs
72           - nominatim
73           - ntp
74           - openssh
75           - osmosis
76           - osqa
77           - otrs
78           - overpass
79           - passenger
80           - php
81           - php-apache
82           - php-fpm
83           - planet
84           - planet-current
85           - planet-dump
86           - planet-notes
87           - planet-replication
88           - postgresql
89           - prometheus
90           - prometheus-server
91           - python
92           - rsyncd
93           - serverinfo
94           - snmpd
95           - spamassassin
96           - ssl
97           - stateofthemap-container
98           - stateofthemap-wordpress
99           - subversion
100           - supybot
101           - switch2osm
102           - sysctl
103           - sysfs
104           - taginfo
105           - tile
106           - tilelog
107           - tools
108           - trac
109           - web-cgimap
110           - web-frontend
111           - web-rails
112           - wordpress
113           - wiki
114         os:
115           - ubuntu-2204
116         include:
117           - os: ubuntu-2004
118             suite: mailman
119           - os: ubuntu-2004
120             suite: osqa
121         exclude:
122           - suite: mailman
123             os: ubuntu-2204
124           - suite: osqa
125             os: ubuntu-2204
126       fail-fast: false
127     steps:
128     - name: Check out code
129       uses: actions/checkout@v3
130     - name: Setup ruby
131       uses: ruby/setup-ruby@v1
132       with:
133         ruby-version: 3.1
134         bundler-cache: true
135     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
136       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
137     - name: Gather journal output
138       run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
139       if: ${{ failure() }}