Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #9

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7c70d73
feat: Change to new base project
oxyno-zeta Aug 12, 2021
8550b09
feat: Continue migration and remove integration hacks
oxyno-zeta Aug 31, 2021
2aa9dcd
style: Fix linter errors
oxyno-zeta Sep 1, 2021
71849c2
chore: Upgrade base project to 3.4.0
oxyno-zeta Sep 1, 2021
7337ef6
chore: Upgrade base project to 3.4.1
oxyno-zeta Sep 1, 2021
44a0d5d
chore: Upgrade base project to 3.4.2
oxyno-zeta Sep 1, 2021
8715cc8
chore: Upgrade base project to 3.4.3
oxyno-zeta Sep 1, 2021
aa26d0b
refactor(prometheushook): Rework structure validation
oxyno-zeta Sep 1, 2021
56c4576
chore: Tidy dependencies
oxyno-zeta Sep 1, 2021
7c3ddf2
test: Rework tests
oxyno-zeta Sep 8, 2021
c2030cd
chore: Upgrade base project to 3.5.0
oxyno-zeta Sep 26, 2021
0907666
chore: Upgrade base project to 3.5.1
oxyno-zeta Sep 26, 2021
d34b009
chore: Add support for multiple arch docker images and clean build arch
oxyno-zeta Sep 26, 2021
073165d
test(config): Fix tests
oxyno-zeta Sep 28, 2021
19c9d2a
ci: Add Github actions
oxyno-zeta Sep 28, 2021
8488de1
docs: Add code of conduct
oxyno-zeta Sep 28, 2021
f780b33
docs: Add pull request template
oxyno-zeta Sep 28, 2021
1bd8c41
ci: Fix linter version
oxyno-zeta Sep 28, 2021
f3b8e8a
chore: Fix goreleaser config
oxyno-zeta Sep 28, 2021
ad9fbe9
ci: Fix tests step management
oxyno-zeta Sep 28, 2021
8e22941
chore: Change setup services order
oxyno-zeta Sep 28, 2021
ecc75fb
test(config): Fix integration tests
oxyno-zeta Oct 10, 2021
482c4fe
test(server): Add integration tests with real CachetHQ
oxyno-zeta Oct 12, 2021
cc17b0c
fix(cachethq): Integrate max pagination in get all groups
oxyno-zeta Oct 13, 2021
3382f93
perf(cachethq): Optimize code
oxyno-zeta Oct 13, 2021
865af9e
test(server): Add integration tests with real CachetHQ
oxyno-zeta Oct 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .circleci/config.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
21 changes: 21 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add Dockerfile label
dockerfile:
- Dockerfile*

# Add test label
tests:
- pkg/**/*_test.go

# Add actions label
actions:
- .github/**/*
- .github/*

# Add ci label
ci:
- .circleci/*

# Add documentation label
documentation:
- "**/*.md"
- "*.md"
33 changes: 33 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Pull request
about: Pull request for this project
title: ""
labels: ""
assignees: ""
---

## Issue/Feature

<!-- Add any information needed. Such as the GH issue this PR relates to or any other context you feel is necessary.) -->

## Additional Information

<!-- What/Why/How or any other context you feel is necessary.) -->

## Verification Steps

<!--
Add the steps required to check this change. Following an example.

1. Go to `XX >> YY >> SS`
2. Create a new item `N` with the info `X`
3. Try to edit this item
4. Check if in the left menu the feature X is not so long present.
-->

## Checklist:

- [ ] Verified by team member
- [ ] Tests were added
- [ ] Comments where necessary
- [ ] Documentation changes if necessary
125 changes: 125 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: ci
on:
push:
branches-ignore:
- "github-pages"
pull_request: {}
jobs:
changes:
runs-on: ubuntu-latest
outputs:
go: ${{ steps.filter.outputs.go }}
config: ${{ steps.filter.outputs.config }}
docker: ${{ steps.filter.outputs.docker }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
go:
- '**/*.go'
- 'go.mod'
- 'go.sum'
config:
- '.github/workflows/ci.yml'
- '.goreleaser.yml'
- '.golangci.yaml'
- 'Makefile'
docker:
- 'Dockerfile'
lint:
if: |
(needs.changes.outputs.go == 'true') ||
(needs.changes.outputs.config == 'true')
runs-on: ubuntu-latest
needs:
- changes
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.42.1

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the action will use pre-installed Go.
# skip-go-installation: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true
build:
if: |
(needs.changes.outputs.go == 'true') ||
(needs.changes.outputs.config == 'true')
runs-on: ubuntu-latest
needs:
- changes
- lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.16.0"
- run: make code/build
build-cross:
if: |
(needs.changes.outputs.go == 'true') ||
(needs.changes.outputs.config == 'true')
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
needs:
- changes
- lint
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.16.0"
- run: make code/build-cross
test:
if: |
(needs.changes.outputs.go == 'true') ||
(needs.changes.outputs.config == 'true') ||
(needs.changes.outputs.docker == 'true')
runs-on: ubuntu-latest
needs:
- changes
- lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.16.0"
- run: |
if [ -f /usr/local/bin/dockerize ]; then
echo "dockerize found; skipping installation";
else
wget https://github.com/jwilder/dockerize/releases/download/v0.6.0/dockerize-linux-amd64-v0.6.0.tar.gz \
&& sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.0.tar.gz \
&& rm dockerize-linux-amd64-v0.6.0.tar.gz;
fi
- run: make setup/services
- run: dockerize -wait tcp://localhost:5432 -timeout 5m
- run: dockerize -wait tcp://localhost:8000 -timeout 5m
- run: make test/all
- run: make test/coverage
- run: go get github.com/mattn/goveralls
- env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=c.out -service=github
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
- pull_request

jobs:
triage:
runs-on: ubuntu-18.04
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
10 changes: 10 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Add size label"
on: pull_request
jobs:
size-label:
runs-on: ubuntu-18.04
steps:
- name: size-label
uses: "pascalgn/size-label-action@df7ad4303b35cbeb20937dbb12d5a050520e469e"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-18.04
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days"
days-before-stale: 30
days-before-close: 10
exempt-issue-labels: "awaiting-approval,work-in-progress,no-stale"
exempt-pr-labels: "awaiting-approval,work-in-progress,no-stale"
stale-issue-label: "no-issue-activity"
stale-pr-label: "no-issue-activity"
Loading