-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
problem: there is no Jenkins job solution: add Jenkins job files plus add dependabot
- Loading branch information
Showing
14 changed files
with
143 additions
and
408 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,13 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
day: sunday | ||
target-branch: dev | ||
labels: [dependencies] | ||
versioning-strategy: increase-if-necessary | ||
commit-message: | ||
prefix: '[dependency]' |
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,48 @@ | ||
name: Code Scanning - Action | ||
|
||
'on': | ||
push: | ||
branches: [dev, main] | ||
pull_request: | ||
branches: [dev] | ||
schedule: | ||
# yamllint disable-line rule:quoted-strings | ||
- cron: '44 11 * * 3' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 360 | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [python] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: /language:${{matrix.language}} |
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,47 @@ | ||
name: Combine PRs | ||
|
||
'on': | ||
schedule: | ||
# yamllint disable-line rule:quoted-strings | ||
- cron: '0 2 * * 1' # Monday at 02:00 AM | ||
workflow_dispatch: # allows you to manually trigger the workflow | ||
inputs: | ||
logLevel: | ||
description: Log level | ||
required: true | ||
default: warning | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
|
||
# The minimum permissions required to run this Action | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
repository-projects: write | ||
checks: read | ||
|
||
jobs: | ||
combine-prs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: combine dependabot prs | ||
id: combine-prs | ||
uses: github/[email protected] | ||
with: | ||
pr_title: '[dependency]: Combine dependabot PRs' | ||
ci_required: true | ||
branch_prefix: dependabot | ||
labels: dependencies | ||
pr_body_header: '# Combined Dependabot PRs ➡️📦⬅️' | ||
|
||
- name: Enable auto-merge for Dependabot PRs | ||
if: ${{ steps.combine-prs.outputs.pr_url }} | ||
run: gh pr merge --auto --squash --subject "$PR_TITLE" "$PR_URL" | ||
env: | ||
PR_URL: ${{ steps.combine-prs.outputs.pr_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_TITLE: '[dependency]: Combine dependabot PRs' |
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 @@ | ||
miscellaneous |
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,4 @@ | ||
[submodule "_symbol"] | ||
path = _symbol | ||
url = https://github.com/symbol/symbol.git | ||
branch = dev |
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,9 @@ | ||
defaultCiPipeline { | ||
// First OS is the default for CI | ||
operatingSystem = ['ubuntu'] | ||
instanceSize = 'medium' | ||
|
||
environment = 'python' | ||
|
||
packageId = 'miscellaneous-scripts' | ||
} |
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,9 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
git submodule update --init | ||
git -C _symbol config core.sparseCheckout true | ||
echo 'jenkins/*' >>.git/modules/_symbol/info/sparse-checkout | ||
echo 'linters/*' >>.git/modules/_symbol/info/sparse-checkout | ||
git submodule update --force --checkout _symbol |
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 @@ | ||
_symbol/jenkins |
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 @@ | ||
_symbol/linters |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.