]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
df157c37741bf645ecea0777503ef8cfbf50331e
[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           - chef
29           - civicrm
30           - clamav
31           - community
32           - db-backup
33           - db-base
34           - db-master
35           - db-slave
36           - devices
37           - dhcpd
38           - dmca
39           - dns
40           - docker
41           - elasticsearch
42           - exim
43           - fail2ban
44           - foundation-board
45           - foundation-dwg
46           - foundation-mastodon
47           - foundation-mwg
48           - foundation-owg
49           - foundation-welcome
50           - foundation-wiki
51           - ftp
52           - geodns
53           - geoipupdate
54           - git
55           - git-server
56           - git-web
57           - gps-tile
58           - hardware
59           - hot
60           - ideditor
61           - imagery-tiler
62           - irc
63           - kibana
64           - letsencrypt
65           - logstash
66           - logstash-forwarder
67           - mail
68           - mailman
69           - matomo
70           - memcached
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() }}