diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..2f1a044d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +on: [push, pull_request] + +name: Test + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install toolchain + run: rustup show + - uses: Swatinem/rust-cache@v2 + - name: Run cargo fmt + run: cargo +nightly fmt -- --check + + - name: Run cargo clippy + run: cargo clippy -- -D warnings + + - name: Run cargo test + run: cargo test diff --git a/Cargo.toml b/Cargo.toml index ff3902db..3ff48507 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,18 +10,18 @@ license = "Apache-2.0" license-file = "LICENSE" [workspace.dependencies] -cairo-lang-compiler = { path = "../cairo/crates/cairo-lang-compiler" } -cairo-lang-parser = { path = "../cairo/crates/cairo-lang-parser" } -cairo-lang-utils = { path = "../cairo/crates/cairo-lang-utils" } -cairo-lang-semantic = { path = "../cairo/crates/cairo-lang-semantic" } -cairo-lang-filesystem = { path = "../cairo/crates/cairo-lang-filesystem" } -cairo-lang-diagnostics = { path = "../cairo/crates/cairo-lang-diagnostics" } -cairo-lang-test-plugin = { path = "../cairo/crates/cairo-lang-test-plugin" } -cairo-lang-lowering = { path = "../cairo/crates/cairo-lang-lowering" } -cairo-lang-syntax = { path = "../cairo/crates/cairo-lang-syntax" } -cairo-lang-defs = { path = "../cairo/crates/cairo-lang-defs" } -cairo-lang-test-utils = { path = "../cairo/crates/cairo-lang-test-utils" } -cairo-lang-language-server = { path = "../cairo/crates/cairo-lang-language-server" } +cairo-lang-compiler = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-parser = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-utils = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-semantic = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-filesystem = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-diagnostics = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-test-plugin = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-lowering = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-syntax = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-defs = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-test-utils = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } +cairo-lang-language-server = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" } salsa = "0.16.1" indoc = "2" test-case = "3.0"