-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- fix CODEOWNERS - trigger updates on CAL on merge to main - setup auto labeler - setup dependabot Github actions updates
- Loading branch information
1 parent
89196cf
commit a3d0a26
Showing
8 changed files
with
154 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
|
||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
commit-message: | ||
prefix: "[ci] " | ||
labels: | ||
- "ci" | ||
assignees: | ||
- "LedgerHQ/backend-core" | ||
reviewers: | ||
- "LedgerHQ/backend-core" |
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 @@ | ||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: ['*.md'] | ||
|
||
descriptors: | ||
- changed-files: | ||
- any-glob-to-any-file: ['*/**/*.json'] | ||
|
||
ci: | ||
- changed-files: | ||
- any-glob-to-any-file: ['.github/**', '**/*.py', 'Pipfile*'] |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PIPENV_NOSPIN: 1 | ||
|
||
jobs: | ||
ci: | ||
name: ci | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
|
||
- name: Checkout | ||
timeout-minutes: 10 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
cache: 'pipenv' | ||
|
||
- name: Install pipenv | ||
run: pip install -U pip pipenv wheel | ||
|
||
- name: Install python dependencies | ||
env: | ||
PYPI_DEPLOY_TOKEN: ${{ secrets.PYPI_DEPLOY_TOKEN }} | ||
run: pipenv sync --dev | ||
|
||
- name: Validate files and format | ||
id: validation | ||
uses: selfagency/capture-output@v1 | ||
with: | ||
cmd: pipenv | ||
args: run,validate_files | ||
|
||
update_cal: | ||
runs-on: ubuntu-latest | ||
needs: ci | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
repo: ['LedgerHQ/crypto-assets', 'LedgerHQ/crypto-assets-clear-signing-initiative'] | ||
steps: | ||
- name: Trigger update on ${{ matrix.repo }} | ||
timeout-minutes: 60 | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.CI_BOT_TOKEN }} | ||
repository: ${{ matrix.repo }} | ||
event-type: submodules |
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,65 @@ | ||
name: pull request | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PIPENV_NOSPIN: 1 | ||
|
||
jobs: | ||
pull_request: | ||
name: pull request | ||
runs-on: public-ledgerhq-shared-small | ||
timeout-minutes: 60 | ||
steps: | ||
|
||
- name: Checkout | ||
timeout-minutes: 10 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add labels | ||
timeout-minutes: 30 | ||
uses: actions/labeler@v5 | ||
|
||
- name: Enforce labels | ||
timeout-minutes: 5 | ||
uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: minimum | ||
count: 1 | ||
labels: | | ||
documentation | ||
specifications | ||
descriptors | ||
ci | ||
add_comment: true | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
cache: 'pipenv' | ||
|
||
- name: Install pipenv | ||
run: pip install -U pip pipenv wheel | ||
|
||
- name: Install python dependencies | ||
env: | ||
PYPI_DEPLOY_TOKEN: ${{ secrets.PYPI_DEPLOY_TOKEN }} | ||
run: pipenv sync --dev | ||
|
||
- name: Validate files and format | ||
id: validation | ||
uses: selfagency/capture-output@v1 | ||
with: | ||
cmd: pipenv | ||
args: run,validate_files |
Validating CODEOWNERS rules …
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 @@ | ||
* @LedgerHQ/crypto-assets-owners |