-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from MGTheTrain/feature/ci-workflows
Feature/ci workflows
- Loading branch information
Showing
48 changed files
with
1,827 additions
and
1,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @MGTheTrain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
We are committed to providing a welcoming and inclusive environment for all contributors, regardless of their background, identity, or experience. We value collaboration, kindness, and respect in all interactions. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contribute to a positive environment include: | ||
|
||
- Being respectful and kind to others | ||
- Communicating constructively and with empathy | ||
- Welcoming diverse perspectives and feedback | ||
- Being open to learning and growing together | ||
|
||
Examples of unacceptable behavior include: | ||
|
||
- Harassment, discrimination, or abuse of any kind | ||
- Disrespectful or offensive language or actions | ||
- Disruptive, destructive, or harmful behavior | ||
- Intimidation, stalking, or unwelcome attention | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for: | ||
|
||
- Ensuring that the community is a welcoming and inclusive space | ||
- Addressing unacceptable behavior promptly and transparently | ||
- Providing resources and support to contribute positively | ||
|
||
## Reporting | ||
|
||
If you witness or experience behavior that violates this Code of Conduct, please report it to us as soon as possible. Reports can be made privately to [your email or contact method here]. | ||
|
||
We will respond to reports with care and confidentiality, ensuring that everyone feels safe and supported. | ||
|
||
## Enforcement | ||
|
||
Anyone found in violation of this Code of Conduct may be asked to leave the community or project, depending on the severity of the behavior. In serious cases, further actions may be taken, including banning or blocking individuals from contributing. | ||
|
||
Thank you for helping us make this a welcoming and productive space for everyone. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Hardware specs (please complete the following information):** | ||
- OS: [e.g. Windows] | ||
- Version [e.g. 11] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
We support only the latest version of crypto-vult-service along with the two most recent minor versions of Go. | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you discover a potential security vulnerability, please submit a security advisory. | ||
|
||
To help us respond more effectively to your report, kindly include the following information: | ||
|
||
- Steps to reproduce or a proof of concept | ||
- Any other relevant details, such as the versions involved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Workflow for dev packages | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
dev-package-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go 1.21.x 🐹 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21.x' | ||
|
||
- name: Grant execute permissions | ||
run: chmod +x * | ||
working-directory: ./scripts | ||
|
||
- name: Run Unit tests | ||
run: ./run-test.sh -u | ||
working-directory: ./scripts | ||
|
||
# - name: Run Integration tests | ||
# run: sudo ./run-test.sh -i | ||
# working-directory: ./scripts | ||
|
||
# Run static code analysis on source code | ||
# Run vulnerability scanner and generate SBOMs on third part dependencies | ||
# # Create build artifacts, e.g. Build docker image with dev tag for applications and push to container registry |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Workflow for pre-release packages | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-release-package-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go 1.21.x 🐹 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21.x' | ||
|
||
- name: Grant execute permissions | ||
run: chmod +x * | ||
working-directory: ./scripts | ||
|
||
- name: Run Unit tests | ||
run: ./run-test.sh -u | ||
working-directory: ./scripts | ||
|
||
# - name: Run Integration tests | ||
# run: ./run-test.sh -i | ||
# working-directory: ./scripts | ||
|
||
# Run static code analysis on source code | ||
# Run vulnerability scanner and generate SBOMs on third part dependencies | ||
# Create build artifacts, e.g. Build docker image with pre-release tag for applications, scan docker image and push to container registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
name: Pull request | ||
name: Workflow for release packages | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
test-build-push: | ||
release-package-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Echo | ||
run: echo "TBD" | ||
|
||
# create-git-tags-from-version-file: | ||
# runs-on: ubuntu-latest | ||
# needs: [test-build-push] | ||
# steps: | ||
- name: Setup Go 1.21.x 🐹 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21.x' | ||
|
||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
- name: Grant execute permissions | ||
run: chmod +x * | ||
working-directory: ./scripts | ||
|
||
# - name: Create git tag from version file | ||
# uses: MGTheTrain/public-github-actions/.github/actions/create-git-tag-from-version-file@main | ||
# with: | ||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
- name: Run Unit tests | ||
run: ./run-test.sh -u | ||
working-directory: ./scripts | ||
|
||
# - name: Run Integration tests | ||
# run: ./run-test.sh -i | ||
# working-directory: ./scripts | ||
|
||
# Run static code analysis on source code | ||
# Run vulnerability scanner and generate SBOMs on third part dependencies | ||
# Create build artifacts, e.g. Build docker image with release tag for applications, scan docker image and push to container registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SCRIPT_DIR = "scripts" | ||
|
||
.PHONY: format-and-lint run-unit-tests run-integration-tests | ||
|
||
format-and-lint: | ||
@cd $(SCRIPT_DIR) && ./format-and-lint.sh | ||
|
||
run-unit-tests: | ||
@cd $(SCRIPT_DIR) && ./run-test.sh -u | ||
|
||
run-integration-tests: | ||
@cd $(SCRIPT_DIR) && ./run-test.sh -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.