From 8b496a3ccb65761d75efb8562a121e5c22084970 Mon Sep 17 00:00:00 2001 From: eddnewgate Date: Fri, 26 Jul 2024 22:40:55 +0545 Subject: [PATCH] feat: ci added --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .github/workflows/test.yml | 16 ---------------- 2 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c12fe00 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: +permissions: read-all + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: software-mansion/setup-scarb@v1 + - name: Check cairo format + run: scarb fmt --check + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: software-mansion/setup-scarb@v1 + - name: Test cairo contract + run: scarb test \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 8f38cc4..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Test - -on: [push, pull_request] -permissions: read-all - -jobs: - check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: software-mansion/setup-scarb@v1 - - uses: foundry-rs/setup-snfoundry@v2 - with: - starknet-foundry-version: 0.14.0 - - name: Run cairo tests - run: snforge test \ No newline at end of file