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