Skip to content

Commit 48d6639

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 e81f4c5 commit 48d6639

File tree

4 files changed

+8
-104
lines changed

4 files changed

+8
-104
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
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-
- "1.20"
13-
- "1.21"
14-
- "1.22"
15-
steps:
16-
- name: Check out source code
17-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18-
19-
- name: Set up Go
20-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
21-
with:
22-
go-version: ${{ matrix.version }}
23-
24-
- name: Test
25-
run: make test
10+
uses: oapi-codegen/actions/.github/workflows/ci.yml@8fc7ee2391cefbcfd05a50f5a27a30cc2bb4962f # v0.1.0

.github/workflows/generate.yml

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

.github/workflows/lint.yml

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

.github/workflows/tidy.yml

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

0 commit comments

Comments
 (0)