CI/CD includes to be used by other projects. This project is holding the common test, linter etc jobs.
Currently, it supports golang test and lint.
sample example on how to call this reusable workflow in your repository :
you can add similar yml as shown below in your repository's .github/workflows directory.
name: golang lint and test
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
Lint-App:
uses: WheeskyJack/cicd-includes/.github/workflows/golangci-lint.yml@v1.2.0
Test-App:
uses: WheeskyJack/cicd-includes/.github/workflows/go_test.yml@v1.2.0
Contributions are welcome! Please feel free to create an issue and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.