Skip to content

Commit

Permalink
test(ci): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Aug 6, 2024
1 parent ffd1235 commit f4bf5cf
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f4bf5cf

Please sign in to comment.