From f37190c63d72c6e6ac563fb7b3122be2da80f602 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Sat, 18 Jun 2022 17:52:37 -0700 Subject: [PATCH 1/2] Update the CI to use the common workflows. --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .github/workflows/updater.yml | 15 +++++++++++++++ .sonar-project.properties | 34 ---------------------------------- README.md | 9 +++++---- 4 files changed, 42 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/updater.yml delete mode 100644 .sonar-project.properties diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4e4a624 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 +--- +name: CI + +on: + push: + branches: + - main + paths-ignore: + - README.md + - CONTRIBUTING.md + - MAINTAINERS.md + - LICENSE + - NOTICE + pull_request: + workflow_dispatch: + +jobs: + ci: + uses: xmidt-org/.github/.github/workflows/go-ci.yml@go-ci-v1 + secrets: inherit diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml new file mode 100644 index 0000000..ef5876f --- /dev/null +++ b/.github/workflows/updater.yml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 +--- +name: Dependency Updater + +on: + schedule: + # Run every week 9:05 AM UTC (Monday at 1:00 AM PT) + - cron: '05 9 * * 1' + workflow_dispatch: + +jobs: + ci: + uses: xmidt-org/.github/.github/workflows/go-updater.yml@go-updater-v1 + secrets: inherit diff --git a/.sonar-project.properties b/.sonar-project.properties deleted file mode 100644 index 3eae408..0000000 --- a/.sonar-project.properties +++ /dev/null @@ -1,34 +0,0 @@ -# Reference: -# https://github.com/SonarSource/sonarcloud_example_go-sqscanner-travis/blob/master/sonar-project.properties - - -# ===================================================== -# Standard properties -# ===================================================== - -sonar.organization=xmidt-org -sonar.projectKey=xmidt-org___PROJECT__ -sonar.projectName=__PROJECT__ - -sonar.sources=. -sonar.exclusions=**/*_test.go,**/vendor/** - -sonar.tests=. -sonar.test.inclusions=**/*_test.go -sonar.test.exclusions=**/vendor/** - -# ===================================================== -# Meta-data for the project -# ===================================================== - -sonar.links.homepage=https://github.com/xmidt-org/__PROJECT__ -sonar.links.ci=https://github.com/xmidt-org/__PROJECT__/actions -sonar.links.scm=https://github.com/xmidt-org/__PROJECT__ -sonar.links.issue=https://github.com/xmidt-org/__PROJECT__/issues - -# ===================================================== -# Properties specific to Go -# ===================================================== - -sonar.go.tests.reportPaths=report.json -sonar.go.coverage.reportPaths=coverage.txt diff --git a/README.md b/README.md index bb0bd90..f130842 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,14 @@ thoth does something good. -[![Build Status](https://github.com/xmidt-org/thoth/workflows/CI/badge.svg)](https://github.com/xmidt-org/thoth/actions) +[![Build Status](https://github.com/xmidt-org/thoth/actions/workflows/ci.yml/badge.svg)](https://github.com/xmidt-org/thoth/actions/workflows/ci.yml) +[![Dependency Updateer](https://github.com/xmidt-org/thoth/actions/workflows/updater.yml/badge.svg)](https://github.com/xmidt-org/thoth/actions/workflows/updater.yml) [![codecov.io](http://codecov.io/github/xmidt-org/thoth/coverage.svg?branch=main)](http://codecov.io/github/xmidt-org/thoth?branch=main) [![Go Report Card](https://goreportcard.com/badge/github.com/xmidt-org/thoth)](https://goreportcard.com/report/github.com/xmidt-org/thoth) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xmidt-org_thoth&metric=alert_status)](https://sonarcloud.io/dashboard?id=xmidt-org_thoth) [![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/xmidt-org/thoth/blob/main/LICENSE) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xmidt-org_PROJECT&metric=alert_status)](https://sonarcloud.io/dashboard?id=xmidt-org_PROJECT) -[![GitHub release](https://img.shields.io/github/release/xmidt-org/thoth.svg)](CHANGELOG.md) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/xmidt-org/thoth)](https://pkg.go.dev/github.com/xmidt-org/thoth) +[![GitHub Release](https://img.shields.io/github/release/xmidt-org/thoth.svg)](CHANGELOG.md) +[![GoDoc](https://pkg.go.dev/badge/github.com/xmidt-org/thoth)](https://pkg.go.dev/github.com/xmidt-org/thoth) ## Setup From 4e377f496974d96e936e3210d6ecbba2af784de5 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Sat, 18 Jun 2022 18:42:26 -0700 Subject: [PATCH 2/2] Disable lint checks for now. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e4a624..4ad7665 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,4 +19,6 @@ on: jobs: ci: uses: xmidt-org/.github/.github/workflows/go-ci.yml@go-ci-v1 + with: + lint-skip: true secrets: inherit