]> git.openstreetmap.org Git - chef.git/blob - .github/workflows/test-kitchen.yml
imager: add tiler cookbook
[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           - munin
72           - munin-plugins
73           - munin-server
74           - mysql
75           - networking
76           - nginx
77           - nodejs
78           - nominatim
79           - ntp
80           - openssh
81           - osmosis
82           - osqa
83           - otrs
84           - overpass
85           - passenger
86           - php
87           - php-apache
88           - php-fpm
89           - planet
90           - planet-aws
91           - planet-current
92           - planet-dump
93           - planet-notes
94           - planet-replication
95           - postgresql
96           - prometheus
97           - prometheus-server
98           - python
99           - rsyncd
100           - serverinfo
101           - snmpd
102           - spamassassin
103           - ssl
104           - stateofthemap-container
105           - stateofthemap-wordpress
106           - subversion
107           - supybot
108           - switch2osm
109           - sysctl
110           - sysfs
111           - taginfo
112           - tile
113           - tilelog
114           - tools
115           - trac
116           - web-cgimap
117           - web-frontend
118           - web-rails
119           - wordpress
120           - wiki
121         os:
122           - ubuntu-2204
123         include:
124           - os: ubuntu-2004
125             suite: mailman
126           - os: ubuntu-2004
127             suite: osqa
128         exclude:
129           - suite: mailman
130             os: ubuntu-2204
131           - suite: osqa
132             os: ubuntu-2204
133       fail-fast: false
134     steps:
135     - name: Login to GitHub Container Registry
136       uses: docker/login-action@v3
137       with:
138         registry: ghcr.io
139         username: ${{ github.actor }}
140         password: ${{ secrets.GITHUB_TOKEN }}
141     - name: Check out code
142       uses: actions/checkout@v4
143     - name: Setup ruby
144       uses: ruby/setup-ruby@v1
145       with:
146         ruby-version: 3.1
147         bundler-cache: true
148     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
149       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
150     - name: Gather journal output
151       run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
152       if: ${{ failure() }}