-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(fix): [#663] Aggregate Dependabot gomod updates
- Loading branch information
Showing
13 changed files
with
455 additions
and
176 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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'docker' | ||
directory: '/' | ||
reviewers: | ||
- '030' | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
reviewers: | ||
- '030' | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'gomod' | ||
directory: '/' | ||
reviewers: | ||
- '030' | ||
interval: "weekly" | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: 'daily' | ||
interval: "weekly" | ||
groups: | ||
gomod-all: | ||
patterns: | ||
- "*" |
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,12 +1,20 @@ | ||
--- | ||
name: Docker | ||
'on': push | ||
"on": | ||
# required by gomod-go-version-updater to trigger this action once pr has | ||
# been reviewed | ||
pull_request_review: | ||
types: [submitted] | ||
push: | ||
permissions: | ||
contents: read | ||
packages: write | ||
jobs: | ||
mcvs-docker-action: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4.1.4 | ||
- uses: schubergphilis/mcvs-docker-action@v0.3.2 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: schubergphilis/mcvs-docker-action@v0.5.6 | ||
with: | ||
dockle-accept-key: libcrypto3,libssl3 | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,17 +1,36 @@ | ||
--- | ||
name: golang | ||
'on': | ||
name: Golang | ||
"on": | ||
# required by gomod-go-version-updater to trigger this action once pr has | ||
# been reviewed | ||
pull_request_review: | ||
types: [submitted] | ||
push: | ||
permissions: | ||
contents: read | ||
packages: read | ||
jobs: | ||
mcvs-golang-action: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
testing-type: | ||
- component | ||
- coverage | ||
- integration | ||
- lint | ||
- security-golang-modules | ||
- security-grype | ||
- security-trivy | ||
- unit | ||
runs-on: ubuntu-22.04 | ||
env: | ||
TASK_X_REMOTE_TASKFILES: 1 | ||
steps: | ||
- uses: actions/checkout@v4.1.4 | ||
- uses: schubergphilis/mcvs-golang-action@v0.4.1 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: schubergphilis/mcvs-golang-action@v0.15.0 | ||
with: | ||
code-coverage-expected: 69.5 | ||
golang-unit-tests-exclusions: |- | ||
\(cmd\/n3dr\|internal\/app\/n3dr\/\(goswagger\|n3drtest\)\) | ||
testing-type: ${{ matrix.testing-type }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,13 +1,13 @@ | ||
--- | ||
name: gomod-go-version-updater-action | ||
'on': | ||
"on": | ||
schedule: | ||
- cron: '42 6 * * *' | ||
- cron: "42 6 * * *" | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
gomod-go-version-updater-action: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: 030/gomod-go-version-updater-action@v0.1.2 | ||
- uses: 030/gomod-go-version-updater-action@v0.2.2 |
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,3 +1,5 @@ | ||
.task | ||
|
||
*.log | ||
|
||
cmd/n3dr/n3dr | ||
|
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
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,50 +1,13 @@ | ||
--- | ||
version: '3' | ||
version: 3 | ||
|
||
env: | ||
GIT_CHGLOG_URL: https://github.com/git-chglog/git-chglog/releases/download | ||
GIT_CHGLOG_VERSION: v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz | ||
CHANGELOG_NEXT_TAG: 7.5.2 | ||
vars: | ||
REMOTE_URL: https://raw.githubusercontent.com | ||
REMOTE_URL_REF: v0.15.3 | ||
REMOTE_URL_REPO: schubergphilis/mcvs-golang-action | ||
|
||
tasks: | ||
changelog: | ||
cmds: | ||
- | | ||
git fetch -p -P | ||
curl \ | ||
-L ${GIT_CHGLOG_URL}/${GIT_CHGLOG_VERSION} \ | ||
-o /tmp/git-chglog.tar.gz | ||
tar -xvf /tmp/git-chglog.tar.gz -C /tmp | ||
chmod +x /tmp/git-chglog | ||
/tmp/git-chglog \ | ||
-o docs/CHANGELOG.md \ | ||
--config configs/chglog/config.yml \ | ||
--next-tag ${CHANGELOG_NEXT_TAG} | ||
sed -i "s|\/\([0-9]\+\.\)\{2\}[0-9]\+|/${CHANGELOG_NEXT_TAG}|g" \ | ||
./docs/quickstarts/snippets/n3dr/DOWNLOAD.md | ||
sed -i "s|version:.*|version: ${CHANGELOG_NEXT_TAG}|" \ | ||
./build/package/snap/snapcraft.yaml | ||
integration-tests: | ||
cmds: | ||
- | | ||
go test \ | ||
-coverprofile=coverage.cov \ | ||
--tags=integration \ | ||
-v \ | ||
-count=1 \ | ||
--cover \ | ||
-race \ | ||
-p=4 \ | ||
./... | ||
go tool cover -func=coverage.cov > coverage-functions.out | ||
go tool cover -html=coverage.cov -o coverage.html | ||
open ./coverage.html | ||
lint: | ||
cmds: | ||
- | | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
~/go/bin/golangci-lint --version | ||
~/go/bin/golangci-lint run \ | ||
-v \ | ||
--timeout 2m30s \ | ||
--config .golangci.yml | ||
includes: | ||
common: | ||
taskfile: ./build/TaskfileCommon.yml | ||
remote: >- | ||
{{.REMOTE_URL}}/{{.REMOTE_URL_REPO}}/{{.REMOTE_URL_REF}}/Taskfile.yml |
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,26 @@ | ||
--- | ||
version: "3" | ||
|
||
vars: | ||
GIT_CHGLOG_URL: https://github.com/git-chglog/git-chglog/releases/download | ||
GIT_CHGLOG_VERSION: v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz | ||
CHANGELOG_NEXT_TAG: 7.5.2 | ||
|
||
tasks: | ||
changelog: | ||
cmds: | ||
- | | ||
git fetch -p -P | ||
curl \ | ||
-L {{.GIT_CHGLOG_URL}}/{{.GIT_CHGLOG_VERSION}} \ | ||
-o /tmp/git-chglog.tar.gz | ||
tar -xvf /tmp/git-chglog.tar.gz -C /tmp | ||
chmod +x /tmp/git-chglog | ||
/tmp/git-chglog \ | ||
-o docs/CHANGELOG.md \ | ||
--config configs/chglog/config.yml \ | ||
--next-tag {{.CHANGELOG_NEXT_TAG}} | ||
sed -i "s|\/\([0-9]\+\.\)\{2\}[0-9]\+|/{{.CHANGELOG_NEXT_TAG}}|g" \ | ||
./docs/quickstarts/snippets/n3dr/DOWNLOAD.md | ||
sed -i "s|version:.*|version: {{.CHANGELOG_NEXT_TAG}}|" \ | ||
./build/package/snap/snapcraft.yaml |
Oops, something went wrong.