generated from eigerco/beerus
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1b0805
commit 4f9f54e
Showing
12 changed files
with
943 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Macros CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'packages/macros/**' | ||
- 'packages/macros_tests/**' | ||
pull_request: | ||
paths: | ||
- 'packages/macros/**' | ||
- 'packages/macros_tests/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: packages/macros | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build | ||
run: cargo build --release | ||
|
||
rustlint: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: packages/macros | ||
env: | ||
RUSTFLAGS: "-Dwarnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Format check | ||
run: cargo fmt --check | ||
- name: Clippy | ||
run: cargo clippy --all | ||
|
||
scarbfmt: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: packages/macros_tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: software-mansion/setup-scarb@v1 | ||
- name: Cairo format check | ||
run: scarb fmt --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.