-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (45 loc) · 1.3 KB
/
check.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: check
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo gem install mdl
mdl -s .github/linter/readme_style.rb README.md
mdl -s .github/linter/base_style.rb .github
mdl -s .github/linter/book_style.rb book
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/[email protected]
- run: scarb fmt --check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/[email protected]
- run: scarb test --all-features
rust_bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly-2024-08-28
components: rustfmt
- uses: asdf-vm/actions/[email protected]
- name: Generate bindings
run: bash scripts/generate_bindings.sh
- name: Check for changes
run: |
git diff --exit-code || (echo "Error: Generated bindings are not up to date. Please run 'bash scripts/generate_bindings.sh' and commit the changes." && exit 1)