mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-01-31 10:30:52 +00:00
Does a checkout of the full commit history and checks the status integrity of each subtree using the git-subtree-check.sh provided in contrib/devtools. Default subtree remotes are defined in the new file contrib/subtrees.json
33 lines
905 B
YAML
33 lines
905 B
YAML
name: linter
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
|
|
jobs:
|
|
translations:
|
|
name: Check Translations
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Lint translation files
|
|
run: python3 contrib/devtools/check-translations.py
|
|
subtrees:
|
|
name: Check Subtrees
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Install prerequisites
|
|
run: sudo apt update && sudo apt install -y bash git jq
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Check subtree integrity
|
|
run: |
|
|
jq -r '.[] | [.name, .remote] | join(" ")' contrib/subtrees.json | xargs -n2 git remote add
|
|
jq -r '.[].name' contrib/subtrees.json | xargs -n1 git fetch
|
|
jq -r '.[].path' contrib/subtrees.json | xargs -n1 bash contrib/devtools/git-subtree-check.sh
|