Skip to content

Commit

Permalink
chore: initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
jshlbrd committed Apr 19, 2022
0 parents commit aa48a34
Show file tree
Hide file tree
Showing 180 changed files with 13,376 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/vscode/devcontainers/go:1.17
RUN sudo apt-get update && \
# install Terraform
cd /tmp/ && \
curl https://releases.hashicorp.com/terraform/1.1.7/terraform_1.1.7_linux_$(dpkg --print-architecture).zip -o ./terraform.zip && \
unzip terraform.zip && \
mv terraform /usr/local/bin/terraform && \
# install Jsonnet
sudo apt-get install -y jsonnet && \
# install AWS CLI
sudo apt-get install -y awscli && \
# install pip and boto3
sudo apt-get install -y python3-pip && pip3 install boto3 && pip3 install black
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Go",
"build": {
"dockerfile": "Dockerfile",
},
"extensions": [
"golang.go",
"hashicorp.terraform",
],
"remoteUser": "vscode",
"mounts": [
"source=${localEnv:HOME}/.aws/,target=/home/vscode/.aws/,type=bind,consistency=cached"
]
}
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
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.

**Build (please complete the following information):**
- Architecture: [e.g. amd64]
- Version [e.g. 0.y.z]

**Cloud (please complete the following information):**
- Provider: [e.g. AWS]
- Service: [e.g. Kinesis, Lambda]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
26 changes: 26 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
39 changes: 39 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: code

on:
pull_request:
branches: [ main ]

jobs:
go:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: setup
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: lint
run: |
go get golang.org/x/lint/golint
golint -set_exit_status ./...
- name: tests
run: go test -timeout 30s -v ./...

python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: setup
uses: actions/setup-python@v2
with:
python-version: '3.x'

- run: |
pip3 install black
find -name *.py | xargs black --check
17 changes: 17 additions & 0 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: conventional_commits

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
conventional_commits:
runs-on: ubuntu-latest

steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/release_please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: release_please

on:
push:
branches:
- main

jobs:
release_please:
runs-on: ubuntu-latest

steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: go
package-name: release-please-action
# beta changes are v0.x
bump-minor-pre-major: true
146 changes: 146 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# CHANGELOG is handled by Release Please
CHANGELOG.md

# ignore all JSON by default
*.json
# allow Visual Studio Code devcontainer config file
!.devcontainer/devcontainer.json
# allow Visual Studio Code settings config file
!.vscode/settings.json

# Archive files
*.zip

# Terraform
*.terraform*
terraform.tfstate*

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
src/build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"terminal.integrated.defaultProfile.linux": "bash",
"go.formatTool": "gofmt",
"go.lintTool": "golint",
"go.inferGopath": false,
}
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @brexhq/substation
Loading

0 comments on commit aa48a34

Please sign in to comment.