Skip to content

Commit 2ec3c0a

Browse files
committed
chore(ci): split build and manifest testing
1 parent f0dfe7d commit 2ec3c0a

3 files changed

Lines changed: 36 additions & 29 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -283,30 +283,3 @@ jobs:
283283
run: |
284284
make kubernetes-logs
285285
kubectl get pods -o wide
286-
test_kustomize_build:
287-
if: ${{ github.event_name == 'pull_request' }}
288-
runs-on: ubuntu-latest
289-
steps:
290-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
291-
- name: Run kustomize build
292-
run: |
293-
make .env
294-
kustomize build .
295-
test_yaml_schema:
296-
if: ${{ github.event_name == 'pull_request' }}
297-
runs-on: ubuntu-latest
298-
steps:
299-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
300-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
301-
with:
302-
node-version: 24
303-
cache: npm
304-
cache-dependency-path: test/pajv/package-lock.json
305-
- name: Install packages
306-
run: |
307-
cd test/pajv
308-
npm install
309-
- name: Run yaml schema test
310-
run: |
311-
cd test/pajv
312-
./run-tests.sh
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test YAML manifests
2+
on:
3+
pull_request:
4+
paths:
5+
- "test/pajv/**"
6+
- "deploy/**"
7+
concurrency:
8+
group: "${{ github.workflow }}-${{ github.ref }}"
9+
cancel-in-progress: true
10+
jobs:
11+
test_kustomize_build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
15+
- name: Run kustomize build
16+
run: |
17+
make .env
18+
kustomize build .
19+
test_yaml_schema:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
23+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
24+
with:
25+
node-version: 24
26+
cache: npm
27+
cache-dependency-path: test/pajv/package-lock.json
28+
- name: Install packages
29+
run: |
30+
cd test/pajv
31+
npm install
32+
- name: Run yaml schema test
33+
run: |
34+
cd test/pajv
35+
./run-tests.sh

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Container images are built on [Alpine Linux](https://alpinelinux.org) or vendor
1010
[Changelog](https://github.com/jeboehm/docker-mailserver/releases)
1111
[Upgrade Guide](docs/UPGRADE.md)
1212

13-
[![Tests](https://github.com/jeboehm/docker-mailserver/actions/workflows/test.yml/badge.svg?branch=next)](https://github.com/jeboehm/docker-mailserver/actions/workflows/test.yml)
14-
[![Build](https://github.com/jeboehm/docker-mailserver/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/jeboehm/docker-mailserver/actions/workflows/build.yml)
13+
[![Build & Tests](https://github.com/jeboehm/docker-mailserver/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/jeboehm/docker-mailserver/actions/workflows/build.yml)
1514

1615
## Features
1716

0 commit comments

Comments
 (0)