]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
Merge remote-tracking branch 'github/pull/621'
[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     permissions:
17       packages: read
18     strategy:
19       matrix:
20         suite:
21           - accounts
22           - apache
23           - apt
24           - backup
25           - bind
26           - blog
27           - blogs
28           - civicrm
29           - clamav
30           - community
31           - db-backup
32           - db-base
33           - db-master
34           - db-slave
35           - devices
36           - dhcpd
37           - dmca
38           - dns
39           - docker
40           - elasticsearch
41           - exim
42           - fail2ban
43           - foundation-board
44           - foundation-dwg
45           - foundation-mwg
46           - foundation-owg
47           - foundation-welcome
48           - foundation-wiki
49           - ftp
50           - geodns
51           - geoipupdate
52           - git
53           - git-server
54           - git-web
55           - gps-tile
56           - hardware
57           - hot
58           - ideditor
59           - irc
60           - kibana
61           - letsencrypt
62           - logstash
63           - logstash-forwarder
64           - mail
65           - mailman
66           - matomo
67           - memcached
68           - munin
69           - munin-plugins
70           - munin-server
71           - mysql
72           - networking
73           - nginx
74           - nodejs
75           - nominatim
76           - ntp
77           - openssh
78           - osmosis
79           - osqa
80           - otrs
81           - overpass
82           - passenger
83           - php
84           - php-apache
85           - php-fpm
86           - planet
87           - planet-aws
88           - planet-current
89           - planet-dump
90           - planet-notes
91           - planet-replication
92           - postgresql
93           - prometheus
94           - prometheus-server
95           - python
96           - rsyncd
97           - serverinfo
98           - snmpd
99           - spamassassin
100           - ssl
101           - stateofthemap-container
102           - stateofthemap-wordpress
103           - subversion
104           - supybot
105           - switch2osm
106           - sysctl
107           - sysfs
108           - taginfo
109           - tile
110           - tilelog
111           - tools
112           - trac
113           - web-cgimap
114           - web-frontend
115           - web-rails
116           - wordpress
117           - wiki
118         os:
119           - ubuntu-2204
120         include:
121           - os: ubuntu-2004
122             suite: mailman
123           - os: ubuntu-2004
124             suite: osqa
125         exclude:
126           - suite: mailman
127             os: ubuntu-2204
128           - suite: osqa
129             os: ubuntu-2204
130       fail-fast: false
131     steps:
132     - name: Login to GitHub Container Registry
133       uses: docker/login-action@v3
134       with:
135         registry: ghcr.io
136         username: ${{ github.actor }}
137         password: ${{ secrets.GITHUB_TOKEN }}
138     - name: Check out code
139       uses: actions/checkout@v4
140     - name: Setup ruby
141       uses: ruby/setup-ruby@v1
142       with:
143         ruby-version: 3.1
144         bundler-cache: true
145     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
146       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
147     - name: Gather journal output
148       run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
149       if: ${{ failure() }}