Skip to content

Commit 644f41e

Browse files
authored
release: phase 2 (#588)
2 parents 5e1b643 + f91ecb7 commit 644f41e

File tree

320 files changed

+64182
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

320 files changed

+64182
-25
lines changed

Diff for: .dockerignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Ignore everything
2+
*
3+
4+
# Allow files and directories
5+
!/api
6+
!/cli
7+
!/Justfile
8+
!/lib
9+
!/maat
10+
!/node
11+
!/pallets
12+
!/primitives
13+
!/runtime
14+
!/storage
15+
!/rust-toolchain.toml
16+
!/Cargo.lock
17+
!/Cargo.toml

Diff for: .envrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
4+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
5+
fi
6+
7+
watch_file rust-toolchain.toml
8+
use flake

Diff for: .github/CODEOWNERS

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Any change in the repo requests review from the dev team
2+
3+
- @cernicc @th7nder @jmg-duarte @aidan46

Diff for: .github/pull_request_template.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### Description
2+
3+
Write an explicit description about what the PR changes, and how you implemented
4+
the change.
5+
6+
The quality of the description directly impacts the quality of the review
7+
process for everyone. Adding relevant context (i.e. describing the reasons for
8+
the change, adding links to relevant documents, etc) to your description ensures
9+
that everyone is able to easily gather the context necessary to review your
10+
change.
11+
12+
### Important points for reviewers
13+
14+
Add some additional resources that could help the reviewer with the
15+
review. Like link to specs if implementing a protocol.
16+
17+
### Checklist
18+
19+
- [ ] Are there important points that reviewers should know?
20+
- [ ] If yes, which ones?
21+
- [ ] Make sure that you described what this change does.
22+
- [ ] If there are follow-ups, have you created issues for them?
23+
- [ ] If yes, which ones? / List them here
24+
- [ ] Have you tested this solution?
25+
- [ ] Were there any alternative implementations considered?
26+
- [ ] Did you document new (or modified) APIs?

Diff for: .github/workflows/ci.yaml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
push:
7+
branches: [develop, main]
8+
9+
concurrency:
10+
group: ${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
check-files:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
skip: ${{ steps.check-files.outputs.skip }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c #v44.5.7
21+
id: changed-files
22+
with:
23+
files: |
24+
**/*.rs
25+
**/Cargo.toml
26+
**/*.scale
27+
- name: Check if proper files changed
28+
id: check-files
29+
run: |
30+
if [[ "${{ steps.changed-files.outputs.any_changed }}" == "false" ]]; then
31+
echo "No files changed. Skipping CI."
32+
echo "skip=true" >> "$GITHUB_OUTPUT"
33+
else
34+
echo "Some files changed. Running CI."
35+
echo "skip=false" >> "$GITHUB_OUTPUT"
36+
fi
37+
38+
docs:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Setup mdBook
43+
uses: peaceiris/actions-mdbook@v2
44+
with:
45+
mdbook-version: '0.4.40'
46+
- name: Build the book
47+
run: mdbook build docs
48+
49+
toml:
50+
if: ${{ needs.check-files.outputs.skip == 'false' && ((github.event.label.name == 'ready for review') || (github.ref_name == 'develop') || (github.ref_name == 'master')) }}
51+
runs-on: self-hosted
52+
needs: check-files
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: List versions
56+
run: |
57+
cargo --version
58+
taplo --version
59+
- name: Run taplo
60+
run: |
61+
taplo lint
62+
taplo fmt --check
63+
64+
format:
65+
runs-on: self-hosted
66+
needs: toml
67+
steps:
68+
- uses: actions/checkout@v4
69+
- name: List version
70+
run: |
71+
cargo +nightly --version
72+
cargo +nightly fmt --version
73+
- name: Cargo format
74+
run: cargo +nightly fmt --all -- --check
75+
76+
clippy_build_and_test:
77+
runs-on: self-hosted
78+
needs:
79+
- format
80+
steps:
81+
- uses: actions/checkout@v4
82+
- name: List version
83+
run: |
84+
rustup show
85+
cargo --version
86+
cargo clippy --version
87+
cargo tarpaulin --version
88+
- name: Build in dev mode
89+
run: RUSTFLAGS="-D warnings" cargo build --profile ci --locked
90+
- name: Cargo clippy
91+
run: RUSTFLAGS="-D warnings" cargo clippy --profile ci --locked
92+
- name: Run tests
93+
run: RUSTFLAGS="-D warnings" cargo tarpaulin --profile ci --locked --workspace --exclude maat

0 commit comments

Comments
 (0)