From 96c2fe99151b2bdea41b41f760a93417ce4746d8 Mon Sep 17 00:00:00 2001 From: Alan Donoso Naumczuk Date: Wed, 18 Dec 2024 17:06:09 -0300 Subject: [PATCH 1/2] misc: CI added --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/test.yml | 34 ---------------------------------- 2 files changed, 29 insertions(+), 34 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 00000000..bb19eea3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: ci + +concurrency: + group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' + cancel-in-progress: true + +on: + push: + branches: + - master + - development + pull_request: + branches: + - master + - development +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install Dependencies + run: yarn + - name: Compile Project + run: npx hardhat compile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 9282e829..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: test - -on: workflow_dispatch - -env: - FOUNDRY_PROFILE: ci - -jobs: - check: - strategy: - fail-fast: true - - name: Foundry project - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly - - - name: Run Forge build - run: | - forge --version - forge build --sizes - id: build - - - name: Run Forge tests - run: | - forge test -vvv - id: test From ff8de5acf07a5f216d6b50f2fa8ca8f1a5182d25 Mon Sep 17 00:00:00 2001 From: Alan Donoso Naumczuk Date: Wed, 18 Dec 2024 17:10:42 -0300 Subject: [PATCH 2/2] fix: Add foundry installation to the CI steps --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb19eea3..9d58b23b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,10 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly - name: Install Dependencies run: yarn - name: Compile Project