Skip to content

Commit 229a92f

Browse files
committed
build: use a re-usable, single, workflow for running CI
As a way to keep updates to the CI pipelines more straightforward, we can extract this out to a shared, versioned (and updated by Renovate) Action. As we support a minimum of Go 1.22, we can make sure that we're running only from Go 1.22 onwards.
1 parent 40670ca commit 229a92f

File tree

4 files changed

+10
-112
lines changed

4 files changed

+10
-112
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
1-
name: Build project
2-
on: [ push, pull_request ]
1+
name: CI
2+
on:
3+
push: {}
4+
pull_request: {}
5+
workflow_dispatch: {}
6+
permissions:
7+
contents: read
38
jobs:
49
build:
5-
name: Build
6-
runs-on: ubuntu-latest
7-
strategy:
8-
fail-fast: false
9-
# perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
10-
matrix:
11-
version:
12-
# versions of Go that this module can still be built with (and therefore are "supported" by this project)
13-
- "1.22"
14-
# actively supported versions of Go
15-
- "1.23"
16-
- "1.24"
17-
steps:
18-
- name: Check out source code
19-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20-
21-
- name: Set up Go
22-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
23-
with:
24-
go-version: ${{ matrix.version }}
25-
26-
- name: Test
27-
run: make test
10+
uses: oapi-codegen/actions/.github/workflows/ci.yml@a4ae25b391bf6689acc6983e1e801237d8d515fc # v0.3.0
11+
with:
12+
excluding_versions: '["1.20", "1.21"]'

.github/workflows/generate.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/tidy.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)