https://github.com/go-faster/x
reusable github workflows
https://github.com/go-faster/x
Last synced: about 1 month ago
JSON representation
reusable github workflows
- Host: GitHub
- URL: https://github.com/go-faster/x
- Owner: go-faster
- License: apache-2.0
- Created: 2021-11-23T06:50:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T04:43:26.000Z (about 2 months ago)
- Last Synced: 2025-03-25T05:28:18.413Z (about 2 months ago)
- Homepage:
- Size: 216 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# x
Go faster [reusable workflows](https://docs.github.com/en/actions/learn-github-actions/reusing-workflows).
## Caveats
1) Can't customize test matrix (e.g. add go version or platform)
## Example
Add `.github/workflows/ci.yml`
```yaml
name: xon:
push:
branches: [main]
pull_request:
workflow_dispatch:# See https://github.com/go-faster/x
jobs:
test:
uses: go-faster/x/.github/workflows/test.yml@main
cover:
uses: go-faster/x/.github/workflows/cover.yml@main
lint:
uses: go-faster/x/.github/workflows/lint.yml@main
commit:
uses: go-faster/x/.github/workflows/commit.yml@main
nancy:
uses: go-faster/x/.github/workflows/nancy.yml@main
codeql:
uses: go-faster/x/.github/workflows/codeql.yml@main
```Add `.github/workflows/pkg.yml`
```yaml
name: pkgon:
push:
tags:
- v*# See https://github.com/go-faster/x
# Automates pkg.go.dev module release fetch.
jobs:
run:
uses: go-faster/x/.github/workflows/release.yml@main
```