]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Enable GitHub Actions manual workflow_dispatch trigger
[chef.git] / .github / workflows / test-kitchen.yml
1 name: Test Kitchen
2
3 on:
4   - push
5   - pull_request
6   - workflow_dispatch
7
8 concurrency:
9   group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
10   cancel-in-progress: true
11
12 jobs:
13   kitchen:
14     name: Test Kitchen
15     runs-on: ubuntu-22.04
16     strategy:
17       matrix:
18         suite:
19           - accounts
20           - apache
21           - apt
22           - backup
23           - bind
24           - blog
25           - blogs
26           - civicrm
27           - clamav
28           - community
29           - db-backup
30           - db-base
31           - db-master
32           - db-slave
33           - devices
34           - dhcpd
35           - dmca
36           - dns
37           - docker
38           - elasticsearch
39           - exim
40           - fail2ban
41           - foundation-board
42           - foundation-dwg
43           - foundation-mwg
44           - foundation-owg
45           - foundation-welcome
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           - ideditor
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-container
99           - stateofthemap-wordpress
100           - subversion
101           - supybot
102           - switch2osm
103           - sysctl
104           - sysfs
105           - taginfo
106           - tile
107           - tilelog
108           - tools
109           - trac
110           - web-cgimap
111           - web-frontend
112           - web-rails
113           - wordpress
114           - wiki
115         os:
116           - ubuntu-2204
117         include:
118           - os: ubuntu-2004
119             suite: mailman
120           - os: ubuntu-2004
121             suite: osqa
122         exclude:
123           - suite: mailman
124             os: ubuntu-2204
125           - suite: osqa
126             os: ubuntu-2204
127       fail-fast: false
128     steps:
129     - name: Check out code
130       uses: actions/checkout@v3
131     - name: Setup ruby
132       uses: ruby/setup-ruby@v1
133       with:
134         ruby-version: 3.1
135         bundler-cache: true
136     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
137       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
138     - name: Gather journal output
139       run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
140       if: ${{ failure() }}