-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
11 changed files
with
309 additions
and
336 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 |
---|---|---|
@@ -1,44 +1,34 @@ | ||
name: Cairo-tests | ||
|
||
env: | ||
ARCHIVE_LINK: https://github.com/starkware-libs/cairo/releases/download/v1.1.0/release-x86_64-unknown-linux-musl.tar.gz | ||
ARCHIVE_NAME: cairo.zip | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Step 1 - Check out main branch | ||
uses: actions/checkout@v3 | ||
- name: Step 2 - Getting scarb | ||
uses: software-mansion/setup-scarb@v1 | ||
- name: Step 3 - Trying to build | ||
run: scarb build | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Step 1 - Check out main branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Step 2 - Downloading binaries | ||
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK | ||
|
||
- name: Step 3 - Unzipping binaries | ||
run: tar -xvf $ARCHIVE_NAME | ||
|
||
- name: Step 4 - Make binaries available | ||
run: echo "./cairo/bin" >> $GITHUB_PATH | ||
|
||
- name: Step 5 - Run all tests | ||
run: cairo-test --starknet . | ||
|
||
- name: Step 2 - Getting scarb | ||
uses: software-mansion/setup-scarb@v1 | ||
- name: Step 3 - Testing | ||
run: scarb build | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Step 1 - Check out main branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Step 2 - Downloading binaries | ||
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK | ||
|
||
- name: Step 3 - Unzipping binaries | ||
run: tar -xvf $ARCHIVE_NAME | ||
|
||
- name: Step 4 - Make binaries available | ||
run: echo "./cairo/bin" >> $GITHUB_PATH | ||
|
||
- name: Step 5 - Run formatter check | ||
run: cairo-format --recursive --check . | ||
- name: Step 2 - Getting scarb | ||
uses: software-mansion/setup-scarb@v1 | ||
- name: Step 3 - Checkign format | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
scarb 0.6.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "lazy" | ||
version = "0.1.0" | ||
|
||
[[target.starknet-contract]] | ||
sierra = true | ||
|
||
[dependencies] | ||
starknet = "=2.1.0" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.