Skip to content

Commit d5a91a3

Browse files
ci: setup github actions (#28)
* ci: setup github actions Signed-off-by: Robert Zaremba <robert@zaremba.ch>
1 parent 3030f85 commit d5a91a3

File tree

9 files changed

+167
-0
lines changed

9 files changed

+167
-0
lines changed

.github/CODEOWNERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
2+
3+
# NOTE: Order is important; the last matching pattern takes the
4+
# most precedence.
5+
6+
# Primary repo maintainers
7+
* @gonative-cc/chain
8+
9+
# Documentation
10+
# *.md @gonative-cc/core-docs
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us squash bugs!
4+
---
5+
6+
<!-- markdownlint-disable MD041 -->
7+
<!-- markdownlint-disable MD003 -->
8+
9+
## Summary of Bug
10+
11+
A clear and concise description of what the 🐞 is.
12+
13+
## Version
14+
15+
Please provide the version of the code.
16+
17+
## Steps to Reproduce
18+
19+
Steps to reproduce the behavior:
20+
21+
1. ...
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature Request
3+
about: Create a proposal to request a feature
4+
---
5+
6+
<!-- markdownlint-disable MD003 -->
7+
<!-- markdownlint-disable MD012 -->
8+
<!-- markdownlint-disable MD041 -->
9+
10+
## Summary
11+
12+
## Context
13+
14+
### Why do we need this feature? What problems may be addressed by introducing this feature?
15+
16+
### What are the benefits by including this feature?
17+
18+
### Are there any disadvantages of including this feature?
19+
20+
## Proposal

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!-- markdownlint-disable MD041 -->
2+
<!-- markdownlint-disable MD012 -->
3+
4+
## Description
5+
6+
Closes: #XXXX
7+
8+
---
9+
10+
### Author Checklist
11+
12+
_All items are required. Please add a note to the item if the item is not applicable and
13+
please add links to any relevant follow up issues._
14+
15+
I have...
16+
17+
- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
18+
<!-- * `feat`: A new feature
19+
* `fix`: A bug fix
20+
* `docs`: Documentation only changes
21+
* `style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
22+
* `refactor`: A code change that neither fixes a bug nor adds a feature
23+
* `perf`: A code change that improves performance
24+
* `test`: Adding missing tests or correcting existing tests
25+
* `build`: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
26+
* `ci`: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
27+
* `chore`: Other changes that don't modify src or test files
28+
* `revert`: Reverts a previous commit -->
29+
- [ ] added `!` to the type prefix if API or client breaking change
30+
- [ ] added appropriate labels to the PR
31+
- [ ] provided a link to the relevant issue or specification
32+
- [ ] added a changelog entry to `CHANGELOG.md`
33+
- [ ] included doc comments for public functions
34+
- [ ] updated the relevant documentation or specification
35+
- [ ] reviewed "Files changed" and left comments if necessary

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/dependencies-review.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Dependency Review"
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
concurrency:
8+
group: ci-${{ github.ref }}-${{ github.workflow }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
dependency-review:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: "Checkout Repository"
16+
uses: actions/checkout@v4
17+
- name: "Dependency Review"
18+
uses: actions/dependency-review-action@v4

.github/lint-pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint-Title
2+
on:
3+
merge_group:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
concurrency:
11+
group: ci-${{ github.ref }}-${{ github.workflow }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
main:
16+
name: PR Title Linter
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: event name
20+
run: echo ${{ github.event_name }}
21+
- uses: amannn/action-semantic-pull-request@v5
22+
if: ${{ github.event_name == 'pull_request' }}
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint
2+
on:
3+
merge_group:
4+
types: [checks_requested]
5+
pull_request:
6+
7+
concurrency:
8+
group: ci-${{ github.ref }}-${{ github.workflow }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
13+
markdown-lint:
14+
name: markdown-lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
# lint only changed files
21+
- uses: tj-actions/changed-files@v46
22+
id: changed-files
23+
with:
24+
files: "**/*.md"
25+
separator: ","
26+
- uses: DavidAnson/markdownlint-cli2-action@v20
27+
if: steps.changed-files.outputs.any_changed == 'true'
28+
with:
29+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
30+
separator: ","

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Backend workers and indexers for BYield services
44

5+
- [btcindexer](./packages/btcindexer/) - Bitcoin indexer for nBTC and SPV prover.
6+
57
## Development
68

79
### Dependencies

0 commit comments

Comments
 (0)