From c697f4d84e198b4775035acfd22881c3486727ca Mon Sep 17 00:00:00 2001 From: Emelie Graven Date: Thu, 21 Sep 2023 10:10:30 +0200 Subject: [PATCH] chore: Migrate to github --- .github/CODEOWNERS | 1 + .github/dependabot.yml | 11 +++++++++++ .github/workflows/rust.yml | 21 +++++++++++++++++++++ .gitlab-ci.yml | 37 ------------------------------------- CODEOWNERS | 1 - README.md | 15 ++------------- 6 files changed, 35 insertions(+), 51 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/rust.yml delete mode 100644 .gitlab-ci.yml delete mode 100644 CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..44f13c7 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @famedly/workflows diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e8d486a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "cargo" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..29d7b9d --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,21 @@ +name: Rust + +on: + push: + branches: [ "main" ] + tags: [ "*" ] + pull_request: + branches: [ "*" ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + permissions: + issues: write + pull-requests: write + contents: read + uses: famedly/backend-build-workflows/.github/workflows/rust-workflow.yml@main + secrets: inherit diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 6a155f0..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -# Include our templates for rust and docker: -include: - - project: 'famedly/infra/templates/ci-cd' - ref: rust-v1 - file: - - '/rust.yml' - -# Different CI stages, that are shown as dots in the GitLab UI and -# are executed one after another -stages: - - test - - doc - - publish - -# Check stage for formatting, lints and test checking -cargo-check: - # Extend from the template - extends: .cargo_check - # Overwrite the script. - # Optional, remove if not needed - script: - # Run these commands in order, so execute a script in the repository first - - bash tests/setup.sh - # Run the script that was in the template, that we overwrote - - !reference [.cargo_check, script] - -# Publish the crate to the crate registry (crates.io or famedly, set in Cargo.toml). -# There is also another template you could use for sub-crates in your repository. -cargo-publish: - # just included (-> activated) from the template - extends: .cargo_publish - -# Documentation pages generation and deployment to the GitLab UI. -# Only runs on the main branch. -pages: - # just included (-> activated) from the template - extends: .cargo_doc diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index dd59d45..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @famedly/team-workflows diff --git a/README.md b/README.md index 11b200e..2b6f185 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,5 @@ # Axum Opentelemetry Middelware -[![pipeline status][badge-pipeline-img]][badge-pipeline-url] -[![coverage report][badge-coverage-img]][badge-coverage-url] -[![docs main][badge-docs-main-img]][badge-docs-main-url] - -[badge-pipeline-img]: https://gitlab.com/famedly/company/backend/libraries/axum-opentelemetry-middleware/badges/main/pipeline.svg -[badge-pipeline-url]: https://gitlab.com/famedly/company/backend/libraries/axum-opentelemetry-middleware/-/commits/main -[badge-coverage-img]: https://gitlab.com/famedly/company/backend/libraries/axum-opentelemetry-middleware/badges/main/coverage.svg -[badge-coverage-url]: https://gitlab.com/famedly/company/backend/libraries/axum-opentelemetry-middleware/-/commits/main -[badge-docs-main-img]: https://img.shields.io/badge/docs-main-blue -[badge-docs-main-url]: https://famedly.gitlab.io/company/backend/libraries/axum-opentelemetry-middleware/axum_opentelemetry_middleware/index.html - A middleware for axum that allows users to get insight into which endpoints are being hit how often for how long as well as registering their own metrics. Currently it only supports outputting metrics to prometheus. @@ -49,7 +38,7 @@ A few lints are commented out in `lints.toml`. This is because they should not b **This project is part of the source code of Famedly.** We think that software for healthcare should be open source, so we publish most -parts of our source code at [gitlab.com/famedly](https://gitlab.com/famedly/company). +parts of our source code at [github.com/famedly](https://github.com/famedly). Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. @@ -79,4 +68,4 @@ the express prior written consent of Famedly GmbH. For more information take a look at [Famedly.com](https://famedly.com) or contact -us by [info@famedly.com](mailto:info@famedly.com?subject=[GitLab]%20More%20Information%20) +us by [info@famedly.com](mailto:info@famedly.com?subject=[GitHub]%20More%20Information%20)