diff --git a/.github/workflows/starknet.yml b/.github/workflows/contracts.yml similarity index 59% rename from .github/workflows/starknet.yml rename to .github/workflows/contracts.yml index bebc107f..92203823 100644 --- a/.github/workflows/starknet.yml +++ b/.github/workflows/contracts.yml @@ -1,4 +1,4 @@ -name: Starknet +name: Contracts on: push: @@ -10,7 +10,7 @@ env: SCARB_VERSION: v0.2.0-alpha.2 jobs: - build: + build-starknet-contracts: name: build runs-on: ubuntu-latest steps: @@ -24,3 +24,24 @@ jobs: - run: scarb build working-directory: apps/blockchain + + test-ethereum-contracts: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "14.x" + + - name: Install dependencies + run: yarn install + + - name: Compile contracts + run: yarn build + + - name: Test contracts + run: yarn test diff --git a/.github/workflows/ethereum.yml b/.github/workflows/ethereum.yml deleted file mode 100644 index 644cc316..00000000 --- a/.github/workflows/ethereum.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Ethereum - -on: - push: - branches: [main, dev] - pull_request: - branches: [main, dev] - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: "14.x" - - - name: Install dependencies - run: yarn install - - - name: Compile contracts - run: yarn build - - - name: Test contracts - run: yarn test