@marcel91200 / caddy Mirror · read-only / commits / 37718560
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

ci: Run CI on PRs targeting minor version branches (#4164)

We decided that we'll use branches like `2.4` as the target for any changes that we might want to release in a `2.4.x` version like `2.4.1`, so that we can continue to merge changes targeting the next minor release (e.g. `2.5.0`) on master. Our CI config wasn't set up for this to work properly though, since it was only running checks on PRs targeting master. This should fix it. I couldn't find a way to do a pattern to only match digits for the branch names from Github's docs, it just looks like a pretty generic glob syntax. But this should do until we get to 3.0

Francis Lavoie committed May 12, 2021 at 00:26 UTC 37718560c1bf8e330d18edb2e663e64a624dee8e
3 files changed +6
.github/workflows/ci.yml
+2
@@ -6,9 +6,11 @@ on:
6 push:
7 branches:
8 - master
9 + - 2.*
10 pull_request:
11 branches:
12 - master
13 + - 2.*
14
15 jobs:
16 test:
.github/workflows/cross-build.yml
+2
@@ -4,9 +4,11 @@ on:
4 push:
5 branches:
6 - master
7 + - 2.*
8 pull_request:
9 branches:
10 - master
11 + - 2.*
12
13 jobs:
14 cross-build-test:
.github/workflows/lint.yml
+2
@@ -4,9 +4,11 @@ on:
4 push:
5 branches:
6 - master
7 + - 2.*
8 pull_request:
9 branches:
10 - master
11 + - 2.*
12
13 jobs:
14 # From https://github.com/golangci/golangci-lint-action