Skip to content

Commit 066c9d7

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.
1 parent 40670ca commit 066c9d7

File tree

4 files changed

+6
-112
lines changed

4 files changed

+6
-112
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
1-
name: Build project
2-
on: [ push, pull_request ]
1+
name: CI
2+
on:
3+
push: {}
4+
pull_request: {}
5+
workflow_dispatch: {}
36
jobs:
47
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
8+
uses: oapi-codegen/actions/.github/workflows/ci.yml@8fc7ee2391cefbcfd05a50f5a27a30cc2bb4962f # v0.1.0

.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)