From 19b665d06f883e83f2201d6ca4a2111750d3cfff Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Fri, 29 Mar 2024 11:19:26 +0100 Subject: [PATCH] ci --- .github/workflows/test.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..c17ed75 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ +name: Continuous Integration - tests + +on: + push: + pull_request: + +jobs: + formatting-and-testing: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Scarb + uses: software-mansion/setup-scarb@v1 + + - name: Setup Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + + - name: Setup Starknet Foundry + uses: foundry-rs/setup-snfoundry@v3 + + - name: Format code + run: cargo fmt --check + + - name: Run cargo tests + run: cargo test + + - name: Run snforge tests + run: snforge test \ No newline at end of file