forked from RGB-Tools/rgb-lib
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (34 loc) · 1.07 KB
/
Copy pathformat.yml
File metadata and controls
37 lines (34 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Format code
on:
push:
branches: [ "utexo-master", "dev", "stage", "master" ]
pull_request:
branches: [ "utexo-master", "dev", "stage", "master" ]
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- name: Authenticate to private RGB forks
shell: bash
run: |
git config --global \
url."https://x-access-token:${{ secrets.BFA_MIRRORS_TOKEN }}@github.com/UTEXO-Protocol/".insteadOf \
"https://github.com/UTEXO-Protocol/"
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Format
run: cargo fmt --all -- --check --config format_code_in_doc_comments=true
- name: Format c-ffi bindings
working-directory: ./bindings/c-ffi
run: |
make format
git diff --exit-code
- name: Format uniffi bindings
working-directory: ./bindings/uniffi
run: cargo fmt -- --check