From 590fd507a62a813abfa0f4a82f12df99ce6fd0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Roycourt?= Date: Thu, 11 May 2023 13:04:42 +0200 Subject: [PATCH] refactor(ci): rename workflows --- .../workflows/{starknet.yml => contracts.yml} | 25 ++++++++++++++-- .github/workflows/ethereum.yml | 29 ------------------- 2 files changed, 23 insertions(+), 31 deletions(-) rename .github/workflows/{starknet.yml => contracts.yml} (59%) delete mode 100644 .github/workflows/ethereum.yml 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