Skip to content

Commit cdd12b6

Browse files
committed
test(ci): test shared ci workflows
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 8fc69a0 commit cdd12b6

File tree

3 files changed

+14
-78
lines changed

3 files changed

+14
-78
lines changed

.github/workflows/auto-merge.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,5 @@ permissions:
77

88
jobs:
99
dependabot:
10-
runs-on: ubuntu-latest
11-
if: github.event.pull_request.user.login == 'dependabot[bot]'
12-
steps:
13-
- name: Dependabot metadata
14-
id: metadata
15-
uses: dependabot/fetch-metadata@v2
16-
17-
- name: Auto-approve all dependabot PRs
18-
run: gh pr review --approve "$PR_URL"
19-
env:
20-
PR_URL: ${{github.event.pull_request.html_url}}
21-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
22-
23-
- name: Auto-merge dependabot PRs for development dependencies
24-
if: contains(steps.metadata.outputs.dependency-group, 'development-dependencies')
25-
run: gh pr merge --auto --rebase "$PR_URL"
26-
env:
27-
PR_URL: ${{github.event.pull_request.html_url}}
28-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
29-
30-
- name: Auto-merge dependabot PRs for go-openapi patches
31-
if: contains(steps.metadata.outputs.dependency-group, 'go-openapi-dependencies') && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch')
32-
run: gh pr merge --auto --rebase "$PR_URL"
33-
env:
34-
PR_URL: ${{github.event.pull_request.html_url}}
35-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
36-
37-
- name: Auto-merge dependabot PRs for golang.org updates
38-
if: contains(steps.metadata.outputs.dependency-group, 'golang-org-dependencies')
39-
run: gh pr merge --auto --rebase "$PR_URL"
40-
env:
41-
PR_URL: ${{github.event.pull_request.html_url}}
42-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
43-
10+
uses: go-openapi/ci-workflows/.github/workflows/auto-merge.yml@master
11+
secrets: inherit

.github/workflows/go-test.yml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,6 @@ on:
1010
pull_request:
1111

1212
jobs:
13-
lint:
14-
name: Lint
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v5
18-
- uses: actions/setup-go@v5
19-
with:
20-
go-version: stable
21-
check-latest: true
22-
cache: true
23-
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v8
25-
with:
26-
version: latest
27-
only-new-issues: true
28-
skip-cache: true
29-
3013
test:
31-
name: Unit tests
32-
runs-on: ${{ matrix.os }}
33-
34-
strategy:
35-
matrix:
36-
os: [ ubuntu-latest, macos-latest, windows-latest ]
37-
go_version: ['oldstable', 'stable' ]
38-
39-
steps:
40-
- uses: actions/setup-go@v5
41-
with:
42-
go-version: '${{ matrix.go_version }}'
43-
check-latest: true
44-
cache: true
45-
46-
- uses: actions/checkout@v5
47-
- name: Run unit tests
48-
shell: bash
49-
run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./...
50-
51-
- name: Upload coverage to codecov
52-
uses: codecov/codecov-action@v5
53-
with:
54-
files: './coverage-${{ matrix.os }}.${{ matrix.go_version }}.out'
55-
flags: '${{ matrix.go_version }}-${{ matrix.os }}'
56-
fail_ci_if_error: false
57-
verbose: true
14+
uses: go-openapi/ci-workflows/.github/workflows/go-test.yml@master
15+
secrets: inherit

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ A golang library applying grammar rules to English words.
1616
> (Capitalize, camelCase, snake_case, etc.).
1717
>
1818
> Acronyms are properly handled. A common use case is word pluralization.
19+
20+
21+
This library is not used at all by other go-openapi packages and is somewhat redundant with
22+
go-openapi/swag/mangling (for camelcase etc).
23+
24+
Currently we have one single dependency in one place in a go-swagger template (used as a funcmap).
25+
26+
## Note to maintainers
27+
28+
* Aug. 2025: CI workflows have now moved to a shared repository go-openapi/ci-workflows

0 commit comments

Comments
 (0)