-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
169 changed files
with
9,026 additions
and
7,878 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,3 @@ | ||
- match: | ||
dependency_type: all | ||
update_type: "semver:minor" |
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,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://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
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,57 @@ | ||
name: after-merge-dependabot | ||
|
||
on: | ||
pull_request_target: | ||
types: [closed] | ||
|
||
jobs: | ||
check: | ||
if: github.event.pull_request.merged && github.actor == 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: dependabot-after-merge | ||
cancel-in-progress: true | ||
steps: | ||
- name: Fetch dependabot metadata | ||
id: dependabot-metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- uses: oprypin/find-latest-tag@v1 | ||
id: octokit | ||
with: | ||
repository: ${{ github.repository }} | ||
prefix: v | ||
|
||
- name: Parse last release | ||
id: semver_parser | ||
uses: booxmedialtd/ws-action-parse-semver@v1 | ||
with: | ||
input_string: '${{ steps.octokit.outputs.tag }}' | ||
version_extractor_regex: 'v(.*)$' | ||
|
||
- name: Compute tag | ||
id: compte_tag | ||
run: | | ||
major=${{ steps.semver_parser.outputs.major }} | ||
minor=${{ steps.semver_parser.outputs.minor }} | ||
patch=${{ steps.semver_parser.outputs.patch }} | ||
if [ "${{ steps.dependabot-metadata.outputs.update-type }}" == "version-update:semver-minor" ]; then | ||
minor=$((minor+1)) | ||
patch=0 | ||
echo "::warning::bumping minor version" | ||
elif [ "${{ steps.dependabot-metadata.outputs.update-type }}" == "version-update:semver-patch" ]; then | ||
patch=$((patch+1)) | ||
echo "::warning::bumping patch version" | ||
fi | ||
tag="v${major}.${minor}.${patch}" | ||
echo "::set-output name=tag::${tag}" | ||
echo "::warning::tag == ${tag}" | ||
- name: Create tag | ||
uses: tvdias/[email protected] | ||
if: steps.compte_tag.outputs.tag != steps.semver_parser.outputs.fullversion | ||
with: | ||
repo-token: "${{ secrets.AUTO_MERGE_TOKEN }}" | ||
tag: "${{ steps.compte_tag.outputs.tag }}" |
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: auto-accept-dependabot | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
auto-merge: | ||
if: github.actor == 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: ahmadnassri/action-dependabot-auto-merge@v2 | ||
with: | ||
config: .github/auto-merge.yml | ||
command: "squash and merge" | ||
github-token: ${{ secrets.AUTO_MERGE_TOKEN }} |
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
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,30 @@ | ||
name: unit-tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: set up go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: cache go modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: tests | ||
run: | | ||
go test -v ./... |
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 |
---|---|---|
@@ -1,26 +1,40 @@ | ||
module github.com/orange-cloudfoundry/gomod_exporter | ||
|
||
go 1.15 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/Microsoft/go-winio v0.5.0 // indirect | ||
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/kevinburke/ssh_config v1.1.0 // indirect | ||
github.com/pkg/errors v0.9.1 | ||
github.com/prometheus/client_golang v1.11.0 | ||
github.com/prometheus/common v0.29.0 | ||
github.com/prometheus/procfs v0.7.0 // indirect | ||
github.com/sergi/go-diff v1.2.0 // indirect | ||
github.com/prometheus/common v0.31.1 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/xanzy/ssh-agent v0.3.0 // indirect | ||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect | ||
golang.org/x/mod v0.4.2 | ||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect | ||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
golang.org/x/mod v0.5.1 | ||
gopkg.in/alecthomas/kingpin.v2 v2.2.6 | ||
gopkg.in/src-d/go-git.v4 v4.13.1 | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b | ||
) | ||
|
||
require ( | ||
github.com/Microsoft/go-winio v0.5.1 // indirect | ||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect | ||
github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.1.2 // indirect | ||
github.com/emirpasic/gods v1.12.0 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect | ||
github.com/kevinburke/ssh_config v1.1.0 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 // indirect | ||
github.com/prometheus/client_model v0.2.0 // indirect | ||
github.com/prometheus/procfs v0.7.3 // indirect | ||
github.com/sergi/go-diff v1.2.0 // indirect | ||
github.com/src-d/gcfg v1.4.0 // indirect | ||
github.com/xanzy/ssh-agent v0.3.1 // indirect | ||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect | ||
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect | ||
golang.org/x/sys v0.0.0-20211015200801-69063c4bb744 // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect | ||
gopkg.in/warnings.v0 v0.1.2 // indirect | ||
) |
Oops, something went wrong.