Skip to content

Commit

Permalink
🚧 init conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Jun 19, 2024
1 parent 0cb30a8 commit f8ed693
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Conformances Tests
on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test
working-directory: conformance
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Common tests for all Starknet implementations.

## Conformance tests

Conformance tests are located in the `conformance` directory.

They are used to test the conformance of the various Starknet implementations.

[![Conformance tests](https://github.com/starknet-io/tests/actions/workflows/conformance.yml/badge.svg)](https://github.com/starknet-io/tests/actions/workflows/conformance.yml)

## License

This project is licensed under the [MIT License](LICENSE).
8 changes: 8 additions & 0 deletions conformance/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "conformance"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
2 changes: 2 additions & 0 deletions conformance/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly-2024-01-04"
11 changes: 11 additions & 0 deletions conformance/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fn main() {
println!("Running Starknet conformance tests.");
}

#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}

0 comments on commit f8ed693

Please sign in to comment.