Skip to content

Commit

Permalink
Add sample PRs and library case
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Mar 21, 2024
1 parent 3d648ba commit 49379df
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The goreleaser and golangci-lint configs are shared and downloaded by the respe

A typical use is to setup the following (see for instance https://github.com/fortio/multicurl setup)
```yaml
name: "Shared cli fortio workflows"
name: "Shared cli/server fortio workflows"
on:
push:
branches: [ main ]
Expand All @@ -32,3 +32,28 @@ jobs:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
```
Or for a library
```yaml
# Same as full workflow (eg from fortio/multicurl) but without the goreleaser step
name: "Shared library fortio workflows"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
call-gochecks:
uses: fortio/workflows/.github/workflows/gochecks.yml@main
call-codecov:
uses: fortio/workflows/.github/workflows/codecov.yml@main
call-codeql:
uses: fortio/workflows/.github/workflows/codeql-analysis.yml@main
```
Sample conversion for server/cli: https://github.com/fortio/multicurl/pull/139
For a library: https://github.com/fortio/sets/pull/64

0 comments on commit 49379df

Please sign in to comment.