Skip to content

Commit 04ccd77

Browse files
committed
Update CI settings
Update CI to be consistent with other repos.
1 parent e578825 commit 04ccd77

4 files changed

Lines changed: 14 additions & 73 deletions

File tree

.github/workflows/ci.yml

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

.github/workflows/lint.yml

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

.github/workflows/tidy.yml

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

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ test:
2626
tidy:
2727
@echo "tidy..."
2828
git ls-files go.mod '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && go mod tidy'
29+
30+
# Empty rule to make CI logic happy
31+
.PHONY: generate
32+
generate: ;

0 commit comments

Comments
 (0)